Remove several @ts-nochecks

This commit is contained in:
Darren Clarke 2023-05-25 09:34:43 +00:00
parent 04ecef98da
commit baa1b32737
8 changed files with 7 additions and 13 deletions

View file

@ -1,10 +1,9 @@
// @ts-nocheck
import { NextPage } from "next";
import { Typography, Box, Button, Grid, Link } from "@mui/material";
import { FC, useEffect } from "react";
import { FC, useEffect, PropsWithChildren } from "react";
import { useRouter } from "next/router";
export const RedirectToAdmin: FC = ({ children }) => {
export const RedirectToAdmin: FC<PropsWithChildren> = ({ children }) => {
const router = useRouter();
useEffect(() => {
router.push("/admin");