remove superfluous div by using spacing class
This commit is contained in:
@@ -20,11 +20,9 @@ export const Failure = ({ error }) => <div>Error: {error.message}</div>
|
|||||||
|
|
||||||
export const Success = ({ posts }) => {
|
export const Success = ({ posts }) => {
|
||||||
return (
|
return (
|
||||||
<div className="-mt-10">
|
<div className="space-y-10">
|
||||||
{posts.map((post) => (
|
{posts.map((post) => (
|
||||||
<div key={post.id} className="mt-10">
|
<BlogPost post={post} key={post.id} />
|
||||||
<BlogPost post={post} />
|
|
||||||
</div>
|
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user