Skip to content

Commit

Permalink
fix: Link children
Browse files Browse the repository at this point in the history
  • Loading branch information
vikdiesel committed Nov 21, 2022
1 parent 0ad6e66 commit 76019ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/AsideMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const AsideMenuItem = ({ item, isDropdownList = false }: Props) => {
return (
<li>
{item.href && (
<Link href={item.href} target={item.target} passHref>
<a className={componentClass}>{asideMenuItemInnerContents}</a>
<Link href={item.href} target={item.target} className={componentClass}>
{asideMenuItemInnerContents}
</Link>
)}
{!item.href && (
Expand Down
4 changes: 2 additions & 2 deletions components/BaseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default function BaseButton({

if (href && !disabled) {
return (
<Link href={href} target={target} passHref>
<a className={componentClassString}>{componentChildren}</a>
<Link href={href} target={target} className={componentClassString}>
{componentChildren}
</Link>
)
}
Expand Down
4 changes: 2 additions & 2 deletions components/NavBarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export default function NavBarItem({ item }: Props) {

if (item.href) {
return (
<Link href={item.href} target={item.target}>
<a className={componentClass}>{NavBarItemComponentContents}</a>
<Link href={item.href} target={item.target} className={componentClass}>
{NavBarItemComponentContents}
</Link>
)
}
Expand Down

0 comments on commit 76019ca

Please sign in to comment.