From bd0f7a7a8c05dc2287e785f15d41994eb9e39261 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 24 Jun 2023 16:33:33 +0200 Subject: [PATCH] Replace old usage of TRXComponent with JSX.Element. --- source/utilities/components/link.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/utilities/components/link.tsx b/source/utilities/components/link.tsx index 85cd9da..2f9aa56 100644 --- a/source/utilities/components/link.tsx +++ b/source/utilities/components/link.tsx @@ -1,3 +1,5 @@ +import {type JSX} from "preact"; + type Props = { class?: string; text: string; @@ -5,7 +7,7 @@ type Props = { }; /** An `` helper component with `target="_blank"` and `rel="noopener"`. */ -export function Link(props: Props): TRXComponent { +export function Link(props: Props): JSX.Element { return ( {props.text}