Skip to content

Commit 36067b0

Browse files
committed
style: lint code
1 parent 5dc4b29 commit 36067b0

File tree

1 file changed

+16
-15
lines changed
  • playground/src/app/(demo)/dropdown-menu/modules

1 file changed

+16
-15
lines changed

playground/src/app/(demo)/dropdown-menu/modules/shared.tsx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ import {
1717
Users
1818
} from 'lucide-react';
1919
import Link from 'next/link';
20-
import config from '../../../../config';
2120
import type { DropdownMenuCheckboxProps, DropdownMenuProps, DropdownMenuRadioProps } from 'soybean-react-ui';
2221
import { toast } from 'soybean-react-ui';
2322

23+
import config from '../../../../config';
24+
2425
export const menus: DropdownMenuProps['items'] = [
2526
{
2627
label: 'My Account',
@@ -110,7 +111,7 @@ export const menus: DropdownMenuProps['items'] = [
110111
];
111112

112113
export const menus2: DropdownMenuCheckboxProps['items'] = [
113-
{ type: 'label', label: 'My Account' },
114+
{ label: 'My Account', type: 'label' },
114115
{ type: 'separator' },
115116
{ label: 'Profile', leading: <User />, shortcut: '⇧⌘P', textValue: 'Profile' },
116117
{ label: 'Billing', leading: <CreditCard />, shortcut: '⌘B', textValue: 'Billing' },
@@ -121,18 +122,18 @@ export const menus2: DropdownMenuCheckboxProps['items'] = [
121122
];
122123

123124
export const menus3: DropdownMenuRadioProps['items'] = [
124-
{ type: 'label', label: 'Tooltip Placement' },
125+
{ label: 'Tooltip Placement', type: 'label' },
125126
{ type: 'separator' },
126-
{ value: 'top-start', label: 'Top Start' },
127-
{ value: 'top', label: 'Top' },
128-
{ value: 'top-end', label: 'Top End' },
129-
{ value: 'right-start', label: 'Right Start' },
130-
{ value: 'right', label: 'Right' },
131-
{ value: 'right-end', label: 'Right End' },
132-
{ value: 'bottom-start', label: 'Bottom Start' },
133-
{ value: 'bottom', label: 'Bottom' },
134-
{ value: 'bottom-end', label: 'Bottom End' },
135-
{ value: 'left-start', label: 'Left Start' },
136-
{ value: 'left', label: 'Left' },
137-
{ value: 'left-end', label: 'Left End' }
127+
{ label: 'Top Start', value: 'top-start' },
128+
{ label: 'Top', value: 'top' },
129+
{ label: 'Top End', value: 'top-end' },
130+
{ label: 'Right Start', value: 'right-start' },
131+
{ label: 'Right', value: 'right' },
132+
{ label: 'Right End', value: 'right-end' },
133+
{ label: 'Bottom Start', value: 'bottom-start' },
134+
{ label: 'Bottom', value: 'bottom' },
135+
{ label: 'Bottom End', value: 'bottom-end' },
136+
{ label: 'Left Start', value: 'left-start' },
137+
{ label: 'Left', value: 'left' },
138+
{ label: 'Left End', value: 'left-end' }
138139
];

0 commit comments

Comments
 (0)