1
Fork 0

Replace old usage of TRXComponent with JSX.Element.

This commit is contained in:
Bauke 2023-06-24 16:33:33 +02:00
parent 2e58f23239
commit bd0f7a7a8c
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import {type JSX} from "preact";
type Props = {
class?: string;
text: string;
@ -5,7 +7,7 @@ type Props = {
};
/** An `<a />` helper component with `target="_blank"` and `rel="noopener"`. */
export function Link(props: Props): TRXComponent {
export function Link(props: Props): JSX.Element {
return (
<a class={props.class} href={props.url} target="_blank" rel="noopener">
{props.text}