fix return types
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m25s

This commit is contained in:
Lee
2024-04-18 03:51:41 +01:00
parent 3c9709df12
commit ac1d9b4f82
20 changed files with 41 additions and 91 deletions

View File

@ -1,4 +1,5 @@
import Link from "next/link";
import { ReactElement } from "react";
type ButtonProps = {
title: string;
@ -6,7 +7,7 @@ type ButtonProps = {
openInNewTab?: boolean;
};
export function RedirectButton({ title, url, openInNewTab }: ButtonProps): JSX.Element {
export function RedirectButton({ title, url, openInNewTab }: ButtonProps): ReactElement {
return (
<div className="w-fit rounded-lg">
<Link href={url} target={openInNewTab ? "_blank" : ""}>