Include createdAt in blog posts to prevent Storybook error

This commit is contained in:
Rob Cameron
2020-10-19 12:08:43 -07:00
parent 3fffe52c85
commit 268a26f6c0
3 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export const generated = () => {
id: 1,
title: 'First Post',
body: 'Neutra tacos hot chicken prism raw denim...',
createdAt: '2020-01-01T12:34:56Z',
}}
/>
)

View File

@@ -5,5 +5,6 @@ export const standard = (/* vars, { ctx, req } */) => ({
title: 'First post',
body:
'Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.',
createdAt: '2020-01-01T12:34:56Z',
},
})

View File

@@ -6,12 +6,14 @@ export const standard = (/* vars, { ctx, req } */) => ({
title: 'First post',
body:
'Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.',
createdAt: '2020-01-01T12:34:56Z',
},
{
id: 2,
title: 'Second post',
body:
'Master cleanse gentrify irony put a bird on it hexagon enamel pin. Pop-up man braid artisan pug tilde synth lo-fi. Ethical tofu portland keytar waistcoat. Pabst authentic hammock chillwave twee trust fund. Lyft humblebrag ramps irony unicorn.',
createdAt: '2020-01-01T12:34:56Z',
},
],
})