Remove several @ts-nochecks
This commit is contained in:
parent
04ecef98da
commit
baa1b32737
8 changed files with 7 additions and 13 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue