feat: replace eslint and prettier with biome
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { useLoaderData } from "@remix-run/react";
|
||||
import { EmptyState } from "~/components/EmptyState";
|
||||
import { PostPreview } from "~/components/PostPreview";
|
||||
import { Title } from "~/components/Title";
|
||||
import { findPosts } from "~/utils/posts.server";
|
||||
@@ -19,15 +18,11 @@ export default function Blog() {
|
||||
return (
|
||||
<>
|
||||
<Title>Here I blog about whatever get my attention</Title>
|
||||
{posts.length > 0 ? (
|
||||
<div className="flex flex-col items-center space-y-5">
|
||||
{posts.map((post, i) => (
|
||||
<PostPreview {...post} key={i} />
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<EmptyState />
|
||||
)}
|
||||
<div className="flex flex-col items-center space-y-5">
|
||||
{posts.map((post) => (
|
||||
<PostPreview {...post} key={post.title} />
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user