From cc64f43a9fc23293ec33d8d324927aeb63c919dd Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 25 Jun 2019 22:39:00 +0200 Subject: [PATCH] added one more post story --- webapp/stories/post-card.story.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/webapp/stories/post-card.story.js b/webapp/stories/post-card.story.js index e6880cae4..b74fa88ce 100644 --- a/webapp/stories/post-card.story.js +++ b/webapp/stories/post-card.story.js @@ -46,7 +46,7 @@ const post = { storiesOf('Post Card', module) .addDecorator(withA11y) .addDecorator(helpers.layout) - .add('Simple', () => ({ + .add('without image', () => ({ components: { HcPostCard }, store: helpers.store, data: () => ({ @@ -59,3 +59,19 @@ storiesOf('Post Card', module) /> `, })) + .add('with image', () => ({ + components: { HcPostCard }, + store: helpers.store, + data: () => ({ + post: { + ...post, + image: 'https://unsplash.com/photos/R4y_E5ZQDPg/download', + }, + }), + template: ` + + `, + }))