refactor: code refactor

This commit is contained in:
Andrea
2023-03-14 13:54:52 +01:00
parent 6d3a6c2155
commit 84ed5530ca
19 changed files with 1666 additions and 1023 deletions

19
app/routes/blog/route.tsx Normal file
View File

@@ -0,0 +1,19 @@
import { Link, Outlet } from "@remix-run/react";
import { useMatch } from "./useMatch";
export default function () {
const { handle } = useMatch();
return (
<div className="h-fit w-full flex flex-col items-center">
{handle && (
<Link
className="mt-5 hover:text-[#e6c2bf] text-xl font-bold"
to={handle.to}
>
{handle.text}
</Link>
)}
<Outlet />
</div>
);
}