1
0
Fork 0

feat(shared): Allow class injection in PageLink

This commit is contained in:
Joost De Cock 2022-05-31 13:46:24 +02:00
parent 878381d98c
commit 39dd5ebaa2

View file

@ -1,10 +1,9 @@
import Link from 'next/link'
const PageLink = ({ href, txt }) => (
const PageLink = ({ href, txt, className="" }) => (
<Link href={href}>
<a className={`
font-bold text-secondary
hover:text-secondary-focus hover:underline`}
<a className={`font-bold text-secondary
hover:text-secondary-focus hover:underline ${className}`}
title={txt}>{txt}</a>
</Link>
)