added one more post story

This commit is contained in:
Grzegorz Leoniec 2019-06-25 22:39:00 +02:00
parent 2b80c12e91
commit cc64f43a9f

View File

@ -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: `
<hc-post-card
:post="post"
:width="{ base: '100%', xs: '100%', md: '50%', xl: '33%' }"
/>
`,
}))