refactor: code refactor
This commit is contained in:
11
app/components/Link.tsx
Normal file
11
app/components/Link.tsx
Normal 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>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user