bunch of stuff
This commit is contained in:
20
web/src/components/PostCell/PostCell.js
Normal file
20
web/src/components/PostCell/PostCell.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import Post from 'src/components/Post'
|
||||
|
||||
export const QUERY = gql`
|
||||
query FIND_POST_BY_ID($id: Int!) {
|
||||
post: post(id: $id) {
|
||||
id
|
||||
title
|
||||
body
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const Loading = () => <div>Loading...</div>
|
||||
|
||||
export const Empty = () => <div>Post not found</div>
|
||||
|
||||
export const Success = ({ post }) => {
|
||||
return <Post post={post} />
|
||||
}
|
||||
Reference in New Issue
Block a user