Skip to content

Commit

Permalink
fix(app): fix border radius storybook
Browse files Browse the repository at this point in the history
fix border radius storybook

close AUTH-223
  • Loading branch information
koji committed Mar 19, 2024
1 parent eb4692a commit ab931cb
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions app/src/DesignTokens/BorderRadius/BorderRadius.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react'
import {
Flex,
ALIGN_FLEX_START,
BORDERS,
Box,
COLORS,
DIRECTION_COLUMN,
Flex,
SPACING,
TYPOGRAPHY,
Box,
ALIGN_FLEX_START,
BORDERS,
} from '@opentrons/components'

import type { Story, Meta } from '@storybook/react'
Expand All @@ -23,9 +23,15 @@ interface BorderRadiusStorybookProps {
}

const Template: Story<BorderRadiusStorybookProps> = args => {
const targetBorderRadiuses = args.borderRadius.filter(s =>
s[0].includes('borderRadiusSize')
)
const targetBorderRadiuses = args.borderRadius
.filter(s => s[0].includes('borderRadius'))
.sort((a, b) => {
const aValue = parseInt(a[1])
const bValue = parseInt(b[1])
return aValue - bValue
})
console.log(targetBorderRadiuses)

return (
<Flex
flexDirection={DIRECTION_COLUMN}
Expand Down

0 comments on commit ab931cb

Please sign in to comment.