links styling fix (no underline)
This commit is contained in:
@@ -4,7 +4,7 @@ import React, {PropsWithChildren} from "react";
|
||||
import {useRouter} from "./RouterContext";
|
||||
import {Path} from "./router";
|
||||
|
||||
export function Link(props: {className: string, href: Path, replace?: boolean } & PropsWithChildren) {
|
||||
export function Link(props: {className?: string, href: Path, replace?: boolean } & PropsWithChildren) {
|
||||
const {children, className, href, replace} = props;
|
||||
const router = useRouter();
|
||||
|
||||
@@ -17,5 +17,5 @@ export function Link(props: {className: string, href: Path, replace?: boolean }
|
||||
}
|
||||
}
|
||||
|
||||
return <a onClick={onClick} href={href} className={`${className} link click`}>{children}</a>
|
||||
return <a onClick={onClick} href={href} className={`${className} link`}>{children}</a>
|
||||
}
|
||||
Reference in New Issue
Block a user