mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 13:45:34 -04:00
adding more dumb easter eggs 🐣
This commit is contained in:
@@ -34,13 +34,13 @@ const FancyLink = styled("a", {
|
||||
},
|
||||
});
|
||||
|
||||
export type CustomLinkProps = Omit<ComponentProps<typeof FancyLink>, "href"> &
|
||||
export type LinkProps = Omit<ComponentProps<typeof FancyLink>, "href"> &
|
||||
NextLinkProps & {
|
||||
underline?: boolean;
|
||||
forceNewWindow?: boolean;
|
||||
};
|
||||
|
||||
const CustomLink = ({
|
||||
const Link = ({
|
||||
href,
|
||||
prefetch = false,
|
||||
passHref = true,
|
||||
@@ -49,7 +49,7 @@ const CustomLink = ({
|
||||
underline = true,
|
||||
forceNewWindow,
|
||||
...rest
|
||||
}: CustomLinkProps) => {
|
||||
}: LinkProps) => {
|
||||
// this component auto-detects whether or not we should use a normal HTML anchor externally or next/link internally,
|
||||
// can be overridden with `forceNewWindow={true}`.
|
||||
const isExternal = isAbsoluteUrl(href.toString());
|
||||
@@ -73,4 +73,4 @@ const CustomLink = ({
|
||||
}
|
||||
};
|
||||
|
||||
export default CustomLink;
|
||||
export default Link;
|
||||
|
Reference in New Issue
Block a user