Rename BlogPostsCell -> ArticlesCell

This commit is contained in:
Rob Cameron
2022-02-08 15:00:33 -08:00
parent bcd217e1d9
commit 82cc078d74
5 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
import { Link, routes } from '@redwoodjs/router'
import BlogPost from 'src/components/BlogPost'
export const QUERY = gql`
query BlogPostsQuery {
articles: posts {
id
title
body
createdAt
}
}
`
export const Loading = () => <div>Loading...</div>
export const Empty = () => <div>Empty</div>
export const Failure = ({ error }) => <div>Error: {error.message}</div>
export const Success = ({ posts }) => {
return (
<div className="space-y-10">
{articles.map((article) => (
<Article articles={articles} key={article.id} />
))}
</div>
)
}