rm a inside Link
This commit is contained in:
1 parent
94f2634e56
commit
706c310458
9 files changed
+20
-34
No files matched your search
@@ -9,7 +9,7 @@ export type ActiveLinkProps = {
|
||||
export const ActiveLink: React.FC<ActiveLinkProps> = props => props.href
|
||||
? (
|
||||
<Link href={props.href}>
|
||||
<a>{props.children}</a>
|
||||
{props.children}
|
||||
</Link>
|
||||
) : (
|
||||
<span style={props.activeStyle}>{props.children}</span>
|
||||
|
||||
Reference in new issue
Block a user