1
0
Fork 0

chore: Fixing linter warnings

This commit is contained in:
Joost De Cock 2022-07-12 20:09:17 +02:00
parent d3a87ad7d1
commit f9e3236253
37 changed files with 46 additions and 694 deletions

View file

@ -3,15 +3,12 @@ import { useState } from 'react'
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
// Locale and translation
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'
import { capitalize } from 'shared/utils.mjs'
import useTheme from 'shared/hooks/useTheme'
function useApp(full = true) {
// Load translation method
const locale = useRouter().locale
const { t } = useTranslation(['app'])
// Persistent state
const [account, setAccount] = useLocalStorage('account', { username: false })