From 01d61588e2229b25dba36b2bc3ebe7a59d53b297 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 3 Jul 2024 14:31:54 -0500 Subject: [PATCH] remove ExternalLink component used in one spot --- app/components/DocsPopover.tsx | 10 +++++----- app/components/ExternalLink.tsx | 27 --------------------------- 2 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 app/components/ExternalLink.tsx diff --git a/app/components/DocsPopover.tsx b/app/components/DocsPopover.tsx index 7f08da88da..154ce2be0c 100644 --- a/app/components/DocsPopover.tsx +++ b/app/components/DocsPopover.tsx @@ -13,17 +13,17 @@ import { OpenLink12Icon, Question12Icon } from '@oxide/design-system/icons/react import { buttonStyle } from '~/ui/lib/Button' -import { ExternalLink } from './ExternalLink' - type DocsPopoverLinkProps = { href: string linkText: string } export const DocsPopoverLink = ({ href, linkText }: DocsPopoverLinkProps) => ( -
@@ -31,7 +31,7 @@ export const DocsPopoverLink = ({ href, linkText }: DocsPopoverLinkProps) => (
-
+ ) type DocsPopoverProps = { diff --git a/app/components/ExternalLink.tsx b/app/components/ExternalLink.tsx deleted file mode 100644 index c12a93f5f3..0000000000 --- a/app/components/ExternalLink.tsx +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, you can obtain one at https://mozilla.org/MPL/2.0/. - * - * Copyright Oxide Computer Company - */ -import cn from 'classnames' - -type ExternalLinkProps = { - href: string - className?: string - children: React.ReactNode -} - -export function ExternalLink({ href, className, children }: ExternalLinkProps) { - return ( - - {children} - - ) -}