From 1027556614febb096f2186d3c678116b415c0b9b Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sat, 13 May 2017 22:55:56 +0900 Subject: Fix broken storybook (#3030) --- storybook/stories/autosuggest_textarea.story.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 storybook/stories/autosuggest_textarea.story.js (limited to 'storybook/stories/autosuggest_textarea.story.js') diff --git a/storybook/stories/autosuggest_textarea.story.js b/storybook/stories/autosuggest_textarea.story.js new file mode 100644 index 000000000..3f13aa416 --- /dev/null +++ b/storybook/stories/autosuggest_textarea.story.js @@ -0,0 +1,17 @@ +import React from 'react'; +import { List } from 'immutable' +import { action, storiesOf } from '@kadira/storybook'; +import AutosuggestTextarea from 'mastodon/components/autosuggest_textarea' + +const props = { + onChange: action('changed'), + onPaste: action('pasted'), + onSuggestionSelected: action('suggestionsSelected'), + onSuggestionsClearRequested: action('suggestionsClearRequested'), + onSuggestionsFetchRequested: action('suggestionsFetchRequested'), + suggestions: List([]) +} + +storiesOf('AutosuggestTextarea', module) + .add('default state', () => ) + .add('with text', () => ) -- cgit