From 58d3c8e211511591abf2176f57f6f09ef679f359 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Fri, 19 Jan 2024 09:29:18 +0100 Subject: [PATCH] Add website URL info --- .../components/Common/Link.tsx | 18 ++++++++++++++++++ .../components/Common/LinkButton.tsx | 10 +--------- .../components/Header/Header.tsx | 18 ++++++++++++++++-- 3 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 src/dashboardWebView/components/Common/Link.tsx diff --git a/src/dashboardWebView/components/Common/Link.tsx b/src/dashboardWebView/components/Common/Link.tsx new file mode 100644 index 00000000..a140da36 --- /dev/null +++ b/src/dashboardWebView/components/Common/Link.tsx @@ -0,0 +1,18 @@ +import * as React from 'react'; + +export interface ILinkProps { + title: string; + href: string; + className?: string; +} + +export const Link: React.FunctionComponent = ({ children, title, href, className }: React.PropsWithChildren) => { + return ( + + {children} + + ); +}; \ No newline at end of file diff --git a/src/dashboardWebView/components/Common/LinkButton.tsx b/src/dashboardWebView/components/Common/LinkButton.tsx index 4d63fc28..310ed817 100644 --- a/src/dashboardWebView/components/Common/LinkButton.tsx +++ b/src/dashboardWebView/components/Common/LinkButton.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import useThemeColors from '../../hooks/useThemeColors'; export interface ILinkButtonProps { title: string; @@ -7,17 +6,10 @@ export interface ILinkButtonProps { } export const LinkButton: React.FunctionComponent = ({ children, title, onClick }: React.PropsWithChildren) => { - const { getColors } = useThemeColors(); - return (