diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-13 22:55:56 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-13 15:55:56 +0200 |
commit | 1027556614febb096f2186d3c678116b415c0b9b (patch) | |
tree | e8a335e835df865e022f6f4640d6982df51a944d /storybook/stories/autosuggest_textarea.story.js | |
parent | 3dcb5fa28f13f597d49b5b442f61d12bc2be6152 (diff) |
Fix broken storybook (#3030)
Diffstat (limited to 'storybook/stories/autosuggest_textarea.story.js')
-rw-r--r-- | storybook/stories/autosuggest_textarea.story.js | 17 |
1 files changed, 17 insertions, 0 deletions
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', () => <AutosuggestTextarea value='' {...props} />) + .add('with text', () => <AutosuggestTextarea value='Hello' {...props} />) |