mirror of https://github.com/MaxLeiter/Drift
Link fixes for basePath
parent
ed842bdc78
commit
b0f4cc2781
@ -0,0 +1,10 @@
|
||||
import { Link as GeistLink, LinkProps } from "@geist-ui/core"
|
||||
import { useRouter } from "next/router";
|
||||
|
||||
const Link = (props: LinkProps) => {
|
||||
const { basePath } = useRouter();
|
||||
|
||||
return <GeistLink {...props} href={`/${basePath}/${props.href}`} />
|
||||
}
|
||||
|
||||
export default Link
|
||||
Loading…
Reference in New Issue