mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-03-02 03:50:40 +00:00
fix(left-sidebar-icon-button-story): update with new props
This commit is contained in:
parent
f23d00d40a
commit
a8de9dd20c
@ -3,6 +3,7 @@ import { DashboardIcon } from '@status-im/icons'
|
|||||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
import LeftSidebarIconButton from './LeftSidebarIconButton'
|
import LeftSidebarIconButton from './LeftSidebarIconButton'
|
||||||
|
import { DASHBOARD } from '../../../constants'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'General/LeftSidebarIconButton',
|
title: 'General/LeftSidebarIconButton',
|
||||||
@ -19,16 +20,14 @@ type Story = StoryObj<typeof meta>
|
|||||||
|
|
||||||
export const Default: Story = {
|
export const Default: Story = {
|
||||||
args: {
|
args: {
|
||||||
iconEl: <DashboardIcon size={20} />,
|
icon: <DashboardIcon size={20} />,
|
||||||
isDisabled: false,
|
path: DASHBOARD,
|
||||||
path: 'dashboard',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Disabled: Story = {
|
export const Disabled: Story = {
|
||||||
args: {
|
args: {
|
||||||
iconEl: <DashboardIcon size={20} />,
|
icon: <DashboardIcon size={20} />,
|
||||||
isDisabled: true,
|
path: DASHBOARD,
|
||||||
path: 'dashboard',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user