File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
import './Timeline.stories.css' ;
2
2
import { Meta , StoryObj } from '@storybook/react' ;
3
3
import { Fragment } from 'react' ;
4
- import { defaultTimelineConfig , Timeline } from './Timeline ' ;
5
- import { TimelineItemsProps } from './TimelineItem ' ;
4
+ import { Timeline , TimelineItemsProps } from '.. ' ;
5
+ import { defaultTimelineConfig } from './Timeline ' ;
6
6
7
- export default {
7
+ const meta : Meta < typeof Timeline > = {
8
8
component : Timeline ,
9
9
decorators : [
10
10
( Story ) => (
@@ -13,7 +13,9 @@ export default {
13
13
</ div >
14
14
) ,
15
15
] ,
16
- } as Meta < typeof Timeline > ;
16
+ } ;
17
+
18
+ export default meta ;
17
19
18
20
const items : TimelineItemsProps = [
19
21
{
Original file line number Diff line number Diff line change 1
- export { Timeline , TimelineProps } from './components/Timeline' ;
2
- export { TimelineItemsProps } from './components/TimelineItem' ;
1
+ export type { TimelineItemsProps } from './components/TimelineItem' ;
2
+ export type { TimelineProps } from './components/Timeline' ;
3
+ export { Timeline } from './components/Timeline' ;
You can’t perform that action at this time.
0 commit comments