Fix build errors

This commit is contained in:
Darren Clarke 2023-03-14 17:40:24 +00:00
parent 785d0965e3
commit d0f1c1337c
28 changed files with 268 additions and 112 deletions

View file

@ -3,7 +3,7 @@ import { Typography, Box, Button, Grid, Link } from "@material-ui/core";
import { FC, PropsWithChildren, useEffect } from "react";
import { useRouter } from "next/router";
export const RedirectToAdmin: FC<PropsWithChildren> = ({ children }) => {
export const RedirectToAdmin: FC = ({ children }) => {
const router = useRouter();
useEffect(() => {
router.push("/admin");
@ -15,7 +15,7 @@ export const RedirectToAdmin: FC<PropsWithChildren> = ({ children }) => {
const Home: NextPage = () => (
<Box>
<Typography variant="h3">Metamigo</Typography>
<Grid container justify="space-around" style={{ padding: 60 }}>
<Grid container justifyContent="space-around" style={{ padding: 60 }}>
<Grid item>
<Link href="/admin">
<Button variant="contained">Admin</Button>