refactor: code refactor

This commit is contained in:
Andrea
2023-03-06 14:34:18 +01:00
parent 991136825d
commit 0fc8c40fed
4 changed files with 44 additions and 50 deletions

11
app/components/Link.tsx Normal file
View File

@@ -0,0 +1,11 @@
import { Link as RemixLink } from "@remix-run/react";
type LinkProps = React.PropsWithChildren<{ to: string }>;
export function Link({ to, children }: LinkProps) {
return (
<RemixLink to={to} className="mt-5 hover:text-[#e6c2bf] text-xl font-bold">
{children}
</RemixLink>
);
}