Fixes ArticleCell mocks to get pages to work
This commit is contained in:
@@ -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',
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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' }
|
||||||
|
|||||||
@@ -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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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' }
|
||||||
|
|||||||
Reference in New Issue
Block a user