mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 21:23:45 -05:00
24 lines
556 B
TypeScript
24 lines
556 B
TypeScript
|
import type { Meta, StoryObj } from '@storybook/react'
|
||
|
import { Loading } from '@/features/ide-react/components/loading'
|
||
|
import { EditorProviders } from '../../../test/frontend/helpers/editor-providers'
|
||
|
|
||
|
const meta: Meta<typeof Loading> = {
|
||
|
title: 'Loading Page / Loading',
|
||
|
component: Loading,
|
||
|
argTypes: {
|
||
|
setLoaded: { action: 'setLoaded' },
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export default meta
|
||
|
|
||
|
type Story = StoryObj<typeof Loading>
|
||
|
|
||
|
export const LoadingPage: Story = {
|
||
|
render: args => (
|
||
|
<EditorProviders>
|
||
|
<Loading {...args} />
|
||
|
</EditorProviders>
|
||
|
),
|
||
|
}
|