Skip to content

Commit

Permalink
Fix PropsVariationSection
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Apr 20, 2020
1 parent 0811568 commit fdac874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fuselage/.storybook/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export function PropsVariationSection({ component: Component, common = {}, xAxis
<Box is='tr'>
<Box is='th' />
{Object.keys(xAxis).map((xVariation, key) =>
<Box key={key} is='th' textColor='hint' textStyle='caption'>{xVariation}</Box>)}
<Box key={key} is='th' textColor='hint' textStyle='c1'>{xVariation}</Box>)}
</Box>
</Box>
<Box is='tbody'>
{Object.entries(yAxis).map(([yVariation, yProps], y) => (
<Box key={y} is='tr'>
<Box is='th' textColor='hint' textStyle='caption'>{yVariation}</Box>
<Box is='th' textColor='hint' textStyle='c1'>{yVariation}</Box>
{Object.values(xAxis).map((xProps, x) => <Box key={x} is='td' style={{ margin: 0, padding: '0.5rem 1rem' }}>
<Box style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<Component {...common} {...xProps} {...yProps} />
Expand Down

0 comments on commit fdac874

Please sign in to comment.