Fixes ArticleCell mocks to get pages to work

This commit is contained in:
Rob Cameron
2022-02-09 10:47:24 -08:00
parent 00fd898e0f
commit a84a6fa3db
4 changed files with 6 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
// Define your own mock data here: // Define your own mock data here:
export const standard = () => { export const standard = () => {
return { return {
post: { article: {
id: 1, id: 1,
title: 'First Post', 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.`, 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', createdAt: '2020-01-01T12:34:56Z',
}, },
}; }
}; };

View File

@@ -14,7 +14,7 @@ export const failure = () => {
} }
export const success = () => { export const success = () => {
return Success ? <Success article={standard().post} /> : null return Success ? <Success article={standard().article} /> : null
} }
export default { title: 'Cells/ArticleCell' } export default { title: 'Cells/ArticleCell' }

View File

@@ -1,7 +1,7 @@
// Define your own mock data here: // Define your own mock data here:
export const standard = () => { export const standard = () => {
return { return {
posts: [ articles: [
{ {
id: 1, id: 1,
title: 'First Post', title: 'First Post',
@@ -15,5 +15,5 @@ export const standard = () => {
createdAt: '2020-01-01T12:34:56Z', createdAt: '2020-01-01T12:34:56Z',
}, },
], ],
}; }
}; };

View File

@@ -14,7 +14,7 @@ export const failure = () => {
} }
export const success = () => { export const success = () => {
return Success ? <Success articles={standard().posts} /> : null return Success ? <Success articles={standard().articles} /> : null
} }
export default { title: 'Cells/ArticlesCell' } export default { title: 'Cells/ArticlesCell' }