mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Add IdeRedesign decorator to dropdown menu stories (#30493)
GitOrigin-RevId: c63801c50029f17979c2b1c0e02a3b0ba5fb7adf
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { Decorator } from '@storybook/react'
|
||||
|
||||
export const IdeRedesign: Decorator = Story => (
|
||||
<div className="ide-redesign-main">
|
||||
<Story />
|
||||
</div>
|
||||
)
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
} from '@/shared/components/dropdown/dropdown-menu'
|
||||
import type { Meta } from '@storybook/react'
|
||||
import OLDropdownMenuItem from '@/shared/components/ol/ol-dropdown-menu-item'
|
||||
import { IdeRedesign } from '../decorators/ide-redesign'
|
||||
|
||||
type Args = React.ComponentProps<typeof DropdownMenu>
|
||||
|
||||
@@ -229,6 +230,7 @@ const meta: Meta<typeof DropdownMenu> = {
|
||||
include: ['disabled'],
|
||||
},
|
||||
},
|
||||
decorators: [IdeRedesign],
|
||||
}
|
||||
|
||||
export default meta
|
||||
|
||||
Reference in New Issue
Block a user