add component
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import BlogPost from 'src/components/BlogPost'
|
||||
|
||||
export const QUERY = gql`
|
||||
query BlogPostQuery($id: Int!) {
|
||||
post(id: $id) {
|
||||
@@ -16,5 +18,5 @@ export const Empty = () => <div>Empty</div>
|
||||
export const Failure = ({ error }) => <div>Error: {error.message}</div>
|
||||
|
||||
export const Success = ({ post }) => {
|
||||
return JSON.stringify(post)
|
||||
return <BlogPost post={post} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user