New source found from dndbeyond.com
This commit is contained in:
@@ -6,7 +6,7 @@ interface LinkProps
|
||||
extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick"> {
|
||||
onClick?: Function;
|
||||
useTheme?: boolean;
|
||||
useRouter?: boolean;
|
||||
userouter?: boolean;
|
||||
}
|
||||
|
||||
export const Link: FC<LinkProps> = ({
|
||||
@@ -15,7 +15,7 @@ export const Link: FC<LinkProps> = ({
|
||||
href,
|
||||
onClick,
|
||||
useTheme,
|
||||
useRouter,
|
||||
userouter,
|
||||
...props
|
||||
}) => {
|
||||
//TODO - refactor to handle stop propagation on the oustide of this component (about 7 or so files to change)
|
||||
@@ -27,7 +27,7 @@ export const Link: FC<LinkProps> = ({
|
||||
}
|
||||
};
|
||||
|
||||
if (useRouter)
|
||||
if (userouter)
|
||||
return (
|
||||
<RouterLink
|
||||
className={className}
|
||||
|
||||
Reference in New Issue
Block a user