refactor: code refactor

This commit is contained in:
Andrea
2024-09-25 10:11:37 +02:00
parent 73f0401565
commit ceb31f2bcc
3 changed files with 13 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ export default function () {
const posts = useLoaderData<typeof loader>();
return (
<div className="space-y-6">
<>
<Title>Here I blog about whatever get my attention</Title>
{posts.length > 0 ? (
<div className="flex flex-col items-center space-y-5">
@@ -28,6 +28,6 @@ export default function () {
) : (
<EmptyState />
)}
</div>
</>
);
}