Skip to content

Commit

Permalink
fix: remove two button example
Browse files Browse the repository at this point in the history
  • Loading branch information
gsamaniego41 committed Oct 27, 2023
1 parent af03abc commit 63b6578
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions packages/storybook/src/ListSubheader/ListSubheader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
import React from 'react'

import type { ListSubheaderProps } from '@monorail/components'
import {
IconButton,
ListSubheader,
Stack,
Typography,
} from '@monorail/components'
import { Add, Close } from '@monorail/components/icons'
import { IconButton, ListSubheader, Typography } from '@monorail/components'
import { Add } from '@monorail/components/icons'

import { story } from '../helpers/storybook.js'

Expand All @@ -31,25 +26,14 @@ export const Default = story(Template)
/**
* Additional elements are pushed to the right by default.
*/
export const WithActionButtons = story<ListSubheaderProps>(args => (
export const WithActionButton = story<ListSubheaderProps>(args => (
<ul>
<ListSubheader {...args} sx={{ maxWidth: 300 }}>
<Typography variant="inherit">List Subheader</Typography>
<IconButton onClick={() => {}} aria-hidden>
<Add />
</IconButton>
</ListSubheader>
<ListSubheader {...args} sx={{ maxWidth: 300 }}>
<Typography variant="inherit">List Subheader</Typography>
<Stack direction="row">
<IconButton onClick={() => {}} aria-hidden>
<Close />
</IconButton>
<IconButton onClick={() => {}} aria-hidden>
<Add />
</IconButton>
</Stack>
</ListSubheader>
</ul>
))

Expand Down

0 comments on commit 63b6578

Please sign in to comment.