From 32b93d1ff3a0a54438888c25c850048b889301ff Mon Sep 17 00:00:00 2001 From: roschaefer Date: Tue, 29 Oct 2019 17:37:47 +0100 Subject: [PATCH] docs: add storybook story for hashtag component --- webapp/components/Hashtag/Hashtag.story.js | 18 ++++++++++++++++++ webapp/components/Hashtag/Readme.md | 7 ------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 webapp/components/Hashtag/Hashtag.story.js delete mode 100644 webapp/components/Hashtag/Readme.md diff --git a/webapp/components/Hashtag/Hashtag.story.js b/webapp/components/Hashtag/Hashtag.story.js new file mode 100644 index 000000000..179a77a19 --- /dev/null +++ b/webapp/components/Hashtag/Hashtag.story.js @@ -0,0 +1,18 @@ +import { storiesOf } from '@storybook/vue' +import { withA11y } from '@storybook/addon-a11y' +import Hashtag from './Hashtag.vue' +import helpers from '~/storybook/helpers' + +helpers.init() + +storiesOf('Hashtag', module) + .addDecorator(withA11y) + .addDecorator(helpers.layout) + .add('clickable', () => ({ + components: { Hashtag }, + store: helpers.store, + data: () => ({ + hashtag: 'SomeHashtag', + }), + template: '', + })) diff --git a/webapp/components/Hashtag/Readme.md b/webapp/components/Hashtag/Readme.md deleted file mode 100644 index 6bb64f1b5..000000000 --- a/webapp/components/Hashtag/Readme.md +++ /dev/null @@ -1,7 +0,0 @@ -### Example - -Tag "Liebe" - -``` - -``` \ No newline at end of file