Skip to content

Commit

Permalink
docs: add missing display name to MyCartIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
gciotola committed Nov 6, 2023
1 parent 2047807 commit f5b170b
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions packages/docs/stories/cart/MiniCart.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,25 @@ CartIcon.decorators = [
)
]

export const WithCartIcon: StoryFn = (args) => {
const MyCartIcon = (): JSX.Element => (
<div className='relative inline-block cursor-pointer text-xs font-bold'>
<LineItemsContainer>
<svg
xmlns='http://www.w3.org/2000/svg'
width='36'
height='36'
fill='currentColor'
viewBox='0 0 256 256'
>
<path d='M216,64H176a48,48,0,0,0-96,0H40A16,16,0,0,0,24,80V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64ZM128,32a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm88,168H40V80H80V96a8,8,0,0,0,16,0V80h64V96a8,8,0,0,0,16,0V80h40Z' />
</svg>
<LineItemsCount className='absolute bottom-2 left-1/2 transform -translate-x-1/2' />
</LineItemsContainer>
</div>
)
const MyCartIcon = (): JSX.Element => (
<div className='relative inline-block cursor-pointer text-xs font-bold'>
<LineItemsContainer>
<svg
xmlns='http://www.w3.org/2000/svg'
width='36'
height='36'
fill='currentColor'
viewBox='0 0 256 256'
>
<path d='M216,64H176a48,48,0,0,0-96,0H40A16,16,0,0,0,24,80V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64ZM128,32a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm88,168H40V80H80V96a8,8,0,0,0,16,0V80h64V96a8,8,0,0,0,16,0V80h40Z' />
</svg>
<LineItemsCount className='absolute bottom-2 left-1/2 transform -translate-x-1/2' />
</LineItemsContainer>
</div>
)
MyCartIcon.DisplayName = 'MyCartIcon'

export const WithCartIcon: StoryFn = (args) => {
return (
<OrderContainer>
<HostedCart
Expand Down

0 comments on commit f5b170b

Please sign in to comment.