feat(shared): Allow class injection in PageLink
This commit is contained in:
parent
878381d98c
commit
39dd5ebaa2
1 changed files with 3 additions and 4 deletions
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue