Add link component, make Button be isomorphic with react-aria

This commit is contained in:
paco
2020-10-08 15:34:10 -06:00
parent 1912813c24
commit 4deaa5d1aa
5 changed files with 70 additions and 42 deletions

View File

@@ -0,0 +1,11 @@
import NextLink, { LinkProps as NextLinkProps } from 'next/link'
const Link: React.FC<NextLinkProps> = ({ href, children, ...props }) => {
return (
<NextLink href={href}>
<a {...props}>{children}</a>
</NextLink>
)
}
export default Link