Skip to content

Commit ef841f5

Browse files
authored
fix: release (#48)
1 parent eec07ee commit ef841f5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/stories/index.stories.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
import {Meta, StoryFn} from '@storybook/react';
1+
import type {Meta, StoryFn} from '@storybook/react';
22
import React from 'react';
33

44
import {FIXED, LEGACY_THEME, MOVING, YCLOUD_THEME} from '../lib/constants';
55

66
import ExampleDT100, {defaultProps} from './Example/Example';
77
import {ResizeableTable} from './Resizeable/Resizeable';
88

9-
export default {
9+
const meta: Meta<typeof ExampleDT100> = {
1010
title: 'React Data Table',
1111
component: ExampleDT100,
12-
} as Meta<typeof ExampleDT100>;
12+
};
13+
14+
export default meta;
1315

1416
const templateArgTypes = {
1517
stickyHeadValues: {
@@ -27,12 +29,12 @@ const templateArgTypes = {
2729

2830
const Template: StoryFn<typeof ExampleDT100> = (args) => <ExampleDT100 {...args} />;
2931

30-
export const Default = Template.bind({});
32+
export const Default: StoryFn<typeof ExampleDT100> = Template.bind({});
3133
Default.args = defaultProps;
3234
Default.argTypes = templateArgTypes;
3335

3436
const ResizeableTemplate: StoryFn<typeof ResizeableTable> = (args) => <ResizeableTable {...args} />;
3537

36-
export const Resizeable = ResizeableTemplate.bind({});
37-
Default.args = {theme: YCLOUD_THEME};
38-
Default.argTypes = templateArgTypes;
38+
export const Resizeable: StoryFn<typeof ResizeableTable> = ResizeableTemplate.bind({});
39+
Resizeable.args = {theme: YCLOUD_THEME};
40+
Resizeable.argTypes = templateArgTypes;

0 commit comments

Comments
 (0)