Replace old usage of TRXComponent with JSX.Element.
This commit is contained in:
parent
2e58f23239
commit
bd0f7a7a8c
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue