about summary refs log tree commit diff
path: root/storybook/stories
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-14 18:21:31 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-14 18:21:31 +0100
commitb27066e154c8c2da57f23bf659907bacd37ce4da (patch)
tree25fe95ddb85b78978d529d88c57d619682c98bb7 /storybook/stories
parent4284093aa3c33ee7d163d6d4343e60eb4df561c6 (diff)
Re-implemented autosuggestions component for the compose form
Fix #205, fix #156, fix #124
Diffstat (limited to 'storybook/stories')
-rw-r--r--storybook/stories/autosuggest_textarea.story.jsx6
-rw-r--r--storybook/stories/button.story.jsx1
-rw-r--r--storybook/stories/loading_indicator.story.jsx6
-rw-r--r--storybook/stories/tabs_bar.story.jsx6
4 files changed, 10 insertions, 9 deletions
diff --git a/storybook/stories/autosuggest_textarea.story.jsx b/storybook/stories/autosuggest_textarea.story.jsx
new file mode 100644
index 000000000..7d84ff1e1
--- /dev/null
+++ b/storybook/stories/autosuggest_textarea.story.jsx
@@ -0,0 +1,6 @@
+import { storiesOf } from '@kadira/storybook';
+import AutosuggestTextarea from '../../app/assets/javascripts/components/components/autosuggest_textarea.jsx'
+
+storiesOf('AutosuggestTextarea', module)
+  .add('default state', () => <AutosuggestTextarea />)
+  .add('with text', () => <AutosuggestTextarea value='Hello' />)
diff --git a/storybook/stories/button.story.jsx b/storybook/stories/button.story.jsx
index fe6d57ad0..fc392abef 100644
--- a/storybook/stories/button.story.jsx
+++ b/storybook/stories/button.story.jsx
@@ -1,3 +1,4 @@
+import { storiesOf } from '@kadira/storybook';
 import Button from '../../app/assets/javascripts/components/components/button.jsx'
 
 storiesOf('Button', module)
diff --git a/storybook/stories/loading_indicator.story.jsx b/storybook/stories/loading_indicator.story.jsx
index d169e4f55..f4a961c4e 100644
--- a/storybook/stories/loading_indicator.story.jsx
+++ b/storybook/stories/loading_indicator.story.jsx
@@ -1,6 +1,6 @@
+import { storiesOf } from '@kadira/storybook';
 import LoadingIndicator from '../../app/assets/javascripts/components/components/loading_indicator.jsx'
+import { IntlProvider } from 'react-intl';
 
 storiesOf('LoadingIndicator', module)
-  .add('default state', () => (
-    <LoadingIndicator />
-  ));
+  .add('default state', () => <IntlProvider><LoadingIndicator /></IntlProvider>);
diff --git a/storybook/stories/tabs_bar.story.jsx b/storybook/stories/tabs_bar.story.jsx
deleted file mode 100644
index daaedca5a..000000000
--- a/storybook/stories/tabs_bar.story.jsx
+++ /dev/null
@@ -1,6 +0,0 @@
-import TabsBar from '../../app/assets/javascripts/components/features/ui/components/tabs_bar.jsx'
-
-storiesOf('TabsBar', module)
-  .add('default state', () => (
-    <TabsBar />
-  ));