Skip to content

Commit fe20ee2

Browse files
committed
change csf2 to csf3 by codemod
1 parent 8eb3950 commit fe20ee2

29 files changed

+3752
-3746
lines changed

stories/Badge.stories.tsx

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
import React from 'react';
22
import { action } from '@storybook/addon-actions';
33
import { Badge } from '../src/scripts';
4-
54
export default {
65
title: 'Badge',
76
};
8-
9-
export const Default = () => (
10-
<Badge onClick={action('click')}>Badge Label</Badge>
11-
);
12-
13-
Default.story = {
7+
export const Default = {
8+
render: () => <Badge onClick={action('click')}>Badge Label</Badge>,
149
parameters: {
1510
info: 'Default badge',
1611
},
1712
};
18-
19-
export const Shade = () => (
20-
<Badge type='shade' onClick={action('click')}>
21-
Badge Label
22-
</Badge>
23-
);
24-
25-
Shade.story = {
13+
export const Shade = {
14+
render: () => (
15+
<Badge type='shade' onClick={action('click')}>
16+
Badge Label
17+
</Badge>
18+
),
2619
parameters: {
2720
info: 'Badge with type: shade',
2821
},
2922
};
30-
31-
export const Inverse = () => (
32-
<Badge type='inverse' onClick={action('click')}>
33-
Badge Label
34-
</Badge>
35-
);
36-
37-
Inverse.story = {
23+
export const Inverse = {
24+
render: () => (
25+
<Badge type='inverse' onClick={action('click')}>
26+
Badge Label
27+
</Badge>
28+
),
3829
parameters: {
3930
info: 'Badge with type: inverse',
4031
},

stories/BreadCrumbs.stories.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import React from 'react';
22
import { action } from '@storybook/addon-actions';
33
import { BreadCrumbs, Crumb } from '../src/scripts';
4-
54
export default {
65
title: 'BreadCrumbs',
76
};
8-
9-
export const Default = () => (
10-
<BreadCrumbs>
11-
<Crumb onClick={action('crumb1#click')}>Parent Entity</Crumb>
12-
<Crumb onClick={action('crumb2#click')}>Parent Record Name</Crumb>
13-
</BreadCrumbs>
14-
);
15-
16-
Default.story = {
17-
parameters: { info: 'Default BreadCrumbs' },
7+
export const Default = {
8+
render: () => (
9+
<BreadCrumbs>
10+
<Crumb onClick={action('crumb1#click')}>Parent Entity</Crumb>
11+
<Crumb onClick={action('crumb2#click')}>Parent Record Name</Crumb>
12+
</BreadCrumbs>
13+
),
14+
parameters: {
15+
info: 'Default BreadCrumbs',
16+
},
1817
};

0 commit comments

Comments
 (0)