Skip to content

Commit

Permalink
hide the presets panel for when there are less or exactly one presets…
Browse files Browse the repository at this point in the history
… available
  • Loading branch information
draganescu committed May 28, 2024
1 parent fe40df6 commit cd8c039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Variation from './variation';
export default function ColorVariations( { title, gap = 2 } ) {
const colorVariations = useColorVariations();

if ( ! colorVariations?.length ) {
if ( ! colorVariations?.length <= 1 ) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Subtitle from '../subtitle';
export default function TypographyVariations( { title, gap = 2 } ) {
const typographyVariations = useTypographyVariations();

if ( ! typographyVariations?.length ) {
if ( ! typographyVariations?.length <= 1 ) {
return null;
}

Expand Down

0 comments on commit cd8c039

Please sign in to comment.