Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit 416e6e2

Browse files
authored
update to storybook 3 (#104)
1 parent 5765cb5 commit 416e6e2

File tree

31 files changed

+44
-56
lines changed

31 files changed

+44
-56
lines changed

.storybook/addons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import '@kadira/storybook/addons';
1+
import '@storybook/addon-actions/register';
22
import 'storybook-addon-a11y/register';

.storybook/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { configure } from '@kadira/storybook';
1+
import { configure } from '@storybook/react';
22

33
// automatically import all story.js files
44
const req = require.context('../', true, /story\.jsx$/);
File renamed without changes.

Button/story.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
2-
import {
3-
action,
4-
storiesOf,
5-
} from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
3+
import { action } from '@storybook/addon-actions';
64
import { checkA11y } from 'storybook-addon-a11y';
75
import Button from './index';
86
import CloseIcon from '../Icon/Icons/CloseIcon';

ButtonStateless/story.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
2-
import {
3-
storiesOf,
4-
action,
5-
} from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
3+
import { action } from '@storybook/addon-actions';
64
import { checkA11y } from 'storybook-addon-a11y';
75
import Button from './index';
86
import Text from '../Text';

Card/story.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
2-
import {
3-
storiesOf,
4-
action,
5-
} from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
3+
import { action } from '@storybook/addon-actions';
64
import { checkA11y } from 'storybook-addon-a11y';
75
import Card from './index';
86
import Link from '../Link';

Icon/story.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { storiesOf } from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
33
import { checkA11y } from 'storybook-addon-a11y';
44
import AddMediaIcon from './Icons/AddMediaIcon';
55
import AnalyticsIcon from './Icons/AnalyticsIcon';

IdTag/story.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { storiesOf } from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
33
import { checkA11y } from 'storybook-addon-a11y';
44
import IdTag from './index';
55

Image/story.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { storiesOf } from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
33
import { checkA11y } from 'storybook-addon-a11y';
44
import Image from './index';
55

Input/story.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import { storiesOf, action } from '@kadira/storybook';
2+
import { storiesOf } from '@storybook/react';
3+
import { action } from '@storybook/addon-actions';
34
import { checkA11y } from 'storybook-addon-a11y';
45
import Input from './index';
56

0 commit comments

Comments
 (0)