From b0fe58dc699fd1b2de61b54b8e884783f742c664 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sun, 4 Jun 2017 23:26:07 +0900 Subject: Upgrade storybook to v3 (#3558) --- storybook/stories/autosuggest_textarea.story.js | 3 ++- storybook/stories/button.story.js | 3 ++- storybook/stories/character_counter.story.js | 3 ++- storybook/stories/loading_indicator.story.js | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'storybook/stories') diff --git a/storybook/stories/autosuggest_textarea.story.js b/storybook/stories/autosuggest_textarea.story.js index 32d0604e4..65dfe965c 100644 --- a/storybook/stories/autosuggest_textarea.story.js +++ b/storybook/stories/autosuggest_textarea.story.js @@ -1,6 +1,7 @@ import React from 'react'; import { List } from 'immutable'; -import { action, storiesOf } from '@kadira/storybook'; +import { storiesOf } from '@storybook/react'; +import { action } from '@storybook/addon-actions'; import AutosuggestTextarea from 'mastodon/components/autosuggest_textarea'; const props = { diff --git a/storybook/stories/button.story.js b/storybook/stories/button.story.js index 3fd45cb82..628deed0a 100644 --- a/storybook/stories/button.story.js +++ b/storybook/stories/button.story.js @@ -1,5 +1,6 @@ import React from 'react'; -import { action, storiesOf } from '@kadira/storybook'; +import { storiesOf } from '@storybook/react'; +import { action } from '@storybook/addon-actions'; import Button from 'mastodon/components/button'; storiesOf('Button', module) diff --git a/storybook/stories/character_counter.story.js b/storybook/stories/character_counter.story.js index eb6eae7d8..15a401a25 100644 --- a/storybook/stories/character_counter.story.js +++ b/storybook/stories/character_counter.story.js @@ -1,5 +1,6 @@ import React from 'react'; -import { storiesOf } from '@kadira/storybook'; +import { storiesOf } from '@storybook/react'; +import { action } from '@storybook/addon-actions'; import CharacterCounter from 'mastodon/features/compose/components/character_counter'; storiesOf('CharacterCounter', module) diff --git a/storybook/stories/loading_indicator.story.js b/storybook/stories/loading_indicator.story.js index 84d722d69..3e12f61ca 100644 --- a/storybook/stories/loading_indicator.story.js +++ b/storybook/stories/loading_indicator.story.js @@ -1,6 +1,7 @@ import React from 'react'; import { IntlProvider } from 'react-intl'; -import { storiesOf } from '@kadira/storybook'; +import { storiesOf } from '@storybook/react'; +import { action } from '@storybook/addon-actions'; import en from 'mastodon/locales/en.json'; import LoadingIndicator from 'mastodon/components/loading_indicator'; -- cgit