mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Remove duplicated story (#28751)
GitOrigin-RevId: 85c210b8240c46c08eead1d1b357724e50bcc756
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import LoadingSpinner, {
|
||||
FullSizeLoadingSpinner,
|
||||
} from '@/shared/components/loading-spinner'
|
||||
|
||||
type Story = StoryObj<typeof LoadingSpinner>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
loadingText: 'Loading content...',
|
||||
},
|
||||
}
|
||||
|
||||
export const WithDelay: Story = {
|
||||
args: {
|
||||
delay: 500,
|
||||
loadingText: 'This will appear after a 500ms delay...',
|
||||
},
|
||||
}
|
||||
|
||||
export const FullSize: StoryObj<typeof FullSizeLoadingSpinner> = {
|
||||
render: args => <FullSizeLoadingSpinner {...args} />,
|
||||
args: {
|
||||
loadingText: 'Loading entire section...',
|
||||
size: 'sm',
|
||||
},
|
||||
}
|
||||
|
||||
const meta: Meta<typeof LoadingSpinner> = {
|
||||
title: 'Shared / Components / Loading Spinner',
|
||||
component: LoadingSpinner,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
argTypes: {
|
||||
delay: {
|
||||
control: 'select',
|
||||
options: [0, 500],
|
||||
},
|
||||
size: {
|
||||
control: 'radio',
|
||||
options: ['lg', 'sm'],
|
||||
},
|
||||
},
|
||||
args: {
|
||||
size: 'sm',
|
||||
delay: 0,
|
||||
},
|
||||
render: args => <LoadingSpinner {...args} />,
|
||||
}
|
||||
|
||||
export default meta
|
||||
Reference in New Issue
Block a user