1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-21 12:05:30 -04:00

remove unnecessary PropsWithChildren

This commit is contained in:
2022-02-09 11:05:48 -05:00
parent 3801989a5b
commit 8385e011c5
7 changed files with 79 additions and 86 deletions
+2 -4
View File
@@ -1,16 +1,14 @@
import NextLink from "next/link";
import classNames from "classnames";
import isAbsoluteUrl from "is-absolute-url";
import type { PropsWithChildren } from "react";
import type { LinkProps as NextLinkProps } from "next/link";
import styles from "./Link.module.css";
export type CustomLinkProps = Omit<JSX.IntrinsicElements["a"], "href"> &
NextLinkProps &
PropsWithChildren<{
NextLinkProps & {
forceNewWindow?: boolean;
}>;
};
const CustomLink = ({
href,