fix return types
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m25s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m25s
This commit is contained in:
@ -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" : ""}>
|
||||
|
Reference in New Issue
Block a user