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:
@ -4,12 +4,12 @@ import { capitalizeFirstLetter } from "@/common/string-utils";
|
||||
import { useToast } from "@/common/use-toast";
|
||||
import { ServerPlatform, getServer } from "mcutils-library";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { ReactElement, useState } from "react";
|
||||
import { Button } from "../ui/button";
|
||||
import { Input } from "../ui/input";
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
|
||||
|
||||
export function LookupServer(): JSX.Element {
|
||||
export function LookupServer(): ReactElement {
|
||||
const router = useRouter();
|
||||
const { toast } = useToast();
|
||||
const [hostname, setHostname] = useState("");
|
||||
@ -48,7 +48,7 @@ export function LookupServer(): JSX.Element {
|
||||
router.push(`/server/${platform}/${hostname}`);
|
||||
};
|
||||
|
||||
const LookupButton = ({ platform }: { platform: ServerPlatform }): JSX.Element => {
|
||||
const LookupButton = ({ platform }: { platform: ServerPlatform }): ReactElement => {
|
||||
const name = capitalizeFirstLetter(platform);
|
||||
return (
|
||||
<Tooltip>
|
||||
|
Reference in New Issue
Block a user