Adds styling
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Link,routes } from '@redwoodjs/router'
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
import BlogPost from 'src/components/BlogPost'
|
||||
|
||||
export const QUERY = gql`
|
||||
@@ -19,5 +19,11 @@ export const Empty = () => <div>Empty</div>
|
||||
export const Failure = ({ error }) => <div>Error: {error.message}</div>
|
||||
|
||||
export const Success = ({ posts }) => {
|
||||
return posts.map((post) => <BlogPost key={post.id} post={post} />)
|
||||
return (
|
||||
<div className="-mt-12">
|
||||
{posts.map((post) => (
|
||||
<BlogPost key={post.id} post={post} />
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user