Skip to content

Commit

Permalink
remove unconnected change
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 15, 2024
1 parent ef3645b commit aabfb6f
Showing 1 changed file with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,35 @@ export default function TypographyVariations() {
columns={ 3 }
className="edit-site-global-styles-style-variations-container"
>
{ typographyVariations &&
typographyVariations.length &&
typographyVariations.map( ( variation, index ) => (
<Variation key={ index } variation={ variation }>
{ ( isFocused ) => (
<PreviewIframe
label={ variation?.title }
isFocused={ isFocused }
>
{ ( { ratio, key } ) => (
<HStack
key={ key }
spacing={ 10 * ratio }
justify="center"
style={ {
height: '100%',
overflow: 'hidden',
} }
>
<TypographyExample
variation={ variation }
fontSize={ 85 * ratio }
/>
</HStack>
) }
</PreviewIframe>
) }
</Variation>
) ) }
{ typographyVariations && typographyVariations.length
? typographyVariations.map( ( variation, index ) => (
<Variation key={ index } variation={ variation }>
{ ( isFocused ) => (
<PreviewIframe
label={ variation?.title }
isFocused={ isFocused }
>
{ ( { ratio, key } ) => (
<HStack
key={ key }
spacing={ 10 * ratio }
justify="center"
style={ {
height: '100%',
overflow: 'hidden',
} }
>
<TypographyExample
variation={ variation }
fontSize={ 85 * ratio }
/>
</HStack>
) }
</PreviewIframe>
) }
</Variation>
) )
: null }
</Grid>
</VStack>
);
Expand Down

0 comments on commit aabfb6f

Please sign in to comment.