fix: use anchor instead of Link for external href

This commit is contained in:
Andy Kenward
2023-05-16 13:24:08 +00:00
parent 659208ad1c
commit 8d4e64c7c3

View File

@@ -137,14 +137,12 @@ const Layout: FC<Props> = (props) => {
) : (
<div className="mt-16 not-prose">
<div>
<Link
<a
href={`https://github.com/supabase/supabase/edit/master/apps/docs/pages${router.asPath}.mdx`}
passHref
className="text-sm transition flex items-center gap-1 text-scale-1000 hover:text-scale-1200"
>
<a className="text-sm transition flex items-center gap-1 text-scale-1000 hover:text-scale-1200">
Edit this page on GitHub <IconExternalLink size={14} strokeWidth={1.5} />
</a>
</Link>
Edit this page on GitHub <IconExternalLink size={14} strokeWidth={1.5} />
</a>
</div>
</div>
)}