diff --git a/pages/index.js b/pages/index.js index f444353..ad7e4da 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,3 +1,4 @@ +import {useRouter} from 'next/router' import PropTypes from 'prop-types' import Container from '@mui/material/Container' import Typography from '@mui/material/Typography' @@ -6,8 +7,6 @@ import Divider from '@mui/material/Divider' import Chip from '@mui/material/Chip' import Grid from '@mui/material/Grid' import Button from '@mui/material/Button' -import OpenInNewIcon from '@mui/icons-material/OpenInNew' -import Tooltip from '@mui/material/Tooltip' import HeadLayout from '../components/head-layout' import Footer from '../components/footer' @@ -19,6 +18,8 @@ import KatKayLa from '../components/kat-kay-la' import Custom500 from './500' export default function Home({errorCode, errorMessage, stats}) { + const router = useRouter() + if (errorCode) { console.log('⚠️ error', errorMessage) return @@ -72,18 +73,14 @@ export default function Home({errorCode, errorMessage, stats}) { - - - + - - - +