Skip to content

Commit

Permalink
fix: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Mar 22, 2023
1 parent 969b711 commit 8f98b09
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/storybook/src/stories/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react'
import type { DropdownProps } from '@wayofdev/ui/src'
import { Dropdown, DropdownAlign, DropdownVariant } from '@wayofdev/ui/src'
import { Dropdown, DropdownAlign, DropdownItemVariant } from '@wayofdev/ui/src'

const meta = {
title: 'Example/Dropdown',
Expand All @@ -13,10 +13,10 @@ const meta = {
},
args: {
items: [
{ variant: DropdownVariant.Link, element: 'Profile', props: { href: '/#Profile' } },
{ variant: DropdownVariant.Link, element: 'Settings', props: { href: '/#Settings' } },
{ variant: DropdownVariant.Link, element: 'My Orders', props: { href: '/#MyOrders' } },
{ variant: DropdownVariant.Button, element: 'Logout' },
{ variant: DropdownItemVariant.Link, element: 'Profile', props: { href: '/#Profile' } },
{ variant: DropdownItemVariant.Link, element: 'Settings', props: { href: '/#Settings' } },
{ variant: DropdownItemVariant.Link, element: 'My Orders', props: { href: '/#MyOrders' } },
{ variant: DropdownItemVariant.Button, element: 'Logout' },
],
align: DropdownAlign.Left,
},
Expand All @@ -38,18 +38,18 @@ export const DropdownAlignRight: Story = {
export const DropdownLinkElement: Story = {
args: {
items: [
{ variant: DropdownVariant.Link, element: 'Profile', props: { href: '/#Profile' } },
{ variant: DropdownVariant.Link, element: 'Settings', props: { href: '/#Settings' } },
{ variant: DropdownVariant.Link, element: 'My Orders', props: { href: '/#MyOrders' } },
{ variant: DropdownItemVariant.Link, element: 'Profile', props: { href: '/#Profile' } },
{ variant: DropdownItemVariant.Link, element: 'Settings', props: { href: '/#Settings' } },
{ variant: DropdownItemVariant.Link, element: 'My Orders', props: { href: '/#MyOrders' } },
],
},
}

export const DropdownButtonElement: Story = {
args: {
items: [
{ variant: DropdownVariant.Button, element: 'Make Action' },
{ variant: DropdownVariant.Button, element: 'Logout' },
{ variant: DropdownItemVariant.Button, element: 'Make Action' },
{ variant: DropdownItemVariant.Button, element: 'Logout' },
],
},
}
Expand Down

0 comments on commit 8f98b09

Please sign in to comment.