Remove unused router
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import {useRouter} from 'next/router'
|
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import Container from '@mui/material/Container'
|
import Container from '@mui/material/Container'
|
||||||
import Typography from '@mui/material/Typography'
|
import Typography from '@mui/material/Typography'
|
||||||
@@ -14,8 +13,6 @@ import KatKayLa from '../components/kat-kay-la'
|
|||||||
import Custom500 from './500'
|
import Custom500 from './500'
|
||||||
|
|
||||||
export default function Home({errorCode, errorMessage, stats}) {
|
export default function Home({errorCode, errorMessage, stats}) {
|
||||||
const router = useRouter()
|
|
||||||
|
|
||||||
if (errorCode) {
|
if (errorCode) {
|
||||||
console.log('⚠️ error', errorMessage)
|
console.log('⚠️ error', errorMessage)
|
||||||
return <Custom500 statusCode={errorCode} />
|
return <Custom500 statusCode={errorCode} />
|
||||||
|
|||||||
Reference in New Issue
Block a user