From 11063dd39d5f32bb62e17c18268ab3f06d76978b Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Mon, 22 Jul 2024 16:37:29 -0500 Subject: [PATCH] chore: dedupe link component in kitchen sink --- .../packages/ui/src/Link/index.test.tsx | 11 -------- .../packages/ui/src/Link/index.tsx | 25 ------------------- 2 files changed, 36 deletions(-) delete mode 100644 examples/kitchen-sink/packages/ui/src/Link/index.test.tsx delete mode 100644 examples/kitchen-sink/packages/ui/src/Link/index.tsx diff --git a/examples/kitchen-sink/packages/ui/src/Link/index.test.tsx b/examples/kitchen-sink/packages/ui/src/Link/index.test.tsx deleted file mode 100644 index d1a954e8a79fd..0000000000000 --- a/examples/kitchen-sink/packages/ui/src/Link/index.test.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { createRoot } from "react-dom/client"; -import { Link } from "."; - -describe("Link", () => { - it("renders without crashing", () => { - const div = document.createElement("div"); - const root = createRoot(div); - root.render(Turborepo Docs); - root.unmount(); - }); -}); diff --git a/examples/kitchen-sink/packages/ui/src/Link/index.tsx b/examples/kitchen-sink/packages/ui/src/Link/index.tsx deleted file mode 100644 index b3e07394b16b8..0000000000000 --- a/examples/kitchen-sink/packages/ui/src/Link/index.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import type { AnchorHTMLAttributes, ReactNode } from "react"; - -interface LinkProps extends AnchorHTMLAttributes { - children: ReactNode; - newTab?: boolean; - href: string; -} - -export function Link({ - children, - href, - newTab, - ...other -}: LinkProps): JSX.Element { - return ( - - {children} - - ); -}