style: fix unused variable

This commit is contained in:
wonderlandpark 2021-03-21 22:06:42 +09:00
parent 38ed36247b
commit 08cc81ba90
2 changed files with 0 additions and 4 deletions

View File

@ -1,6 +1,5 @@
import Link from 'next/link'
import Container from '@components/Container'
import Wave from '@components/Wave'
import Toggle from './Toggle'
import { Theme } from '@types'
@ -100,7 +99,6 @@ const Footer = ({ theme, setTheme }: FooterProps): JSX.Element => {
}
interface FooterProps {
color?: string
theme: Theme
setTheme(value: Theme): void
}

View File

@ -1,7 +1,6 @@
import Head from 'next/head'
import type { AppProps } from 'next/app'
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import { GlobalHotKeys } from 'react-hotkeys'
@ -32,7 +31,6 @@ export default function App({ Component, pageProps, err }: KoreanbotsProps): JSX
const [ betaKey, setBetaKey ] = useState('')
const [ shortcutModal, setShortcutModal ] = useState(false)
const [ theme, setTheme ] = useState<Theme>('system')
const router = useRouter()
useEffect(() => {
setBetaKey(localStorage.betaKey)