mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-17 09:22:02 -05:00
Also replaced the local fonts with Google fonts since they are more performant and easier to package. Created a custom Link component to render the ChakraUI link inside the NextJS Link properly.
14 lines
387 B
TypeScript
14 lines
387 B
TypeScript
import { Link } from '@metafam/ds';
|
|
import NextLink, { LinkProps } from 'next/link';
|
|
import React from 'react';
|
|
|
|
type Props = LinkProps;
|
|
|
|
export const MetaLink: React.FC<Props> = ({ children, ...props }) => (
|
|
<NextLink {...props} passHref>
|
|
{/* NextLink passes the href */}
|
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
<Link>{children}</Link>
|
|
</NextLink>
|
|
);
|