Files
TheGame/packages/web/components/Link.tsx
Hammad Jutt 0f9c790351 Setup Design System with NextJS Web App
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.
2020-07-26 19:56:11 -06:00

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>
);