Skip to content

Commit cce44f0

Browse files
fix: classname was not applied to button link
1 parent 9473409 commit cce44f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/button-link/ButtonLink.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import Link from 'next/link'
22
import IconArrowRight from '../../public/icons/arrow-right'
3+
import clsx from 'clsx'
34

4-
const ButtonLink = ({ href, isExternal, children }) => {
5+
const ButtonLink = ({ href, isExternal, children, className }) => {
56
return (
67
<Link
78
href={href}
89
target={isExternal ? '_blank' : undefined}
910
rel={isExternal ? 'noreferrer' : undefined}
10-
className="button-link"
11+
className={clsx('button-link', className)}
1112
>
1213
{children} <IconArrowRight />
1314
</Link>

0 commit comments

Comments
 (0)