diff --git a/pages/_app.tsx b/pages/_app.tsx
index c7dd8537..b8cdcf92 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -1,41 +1,16 @@
-import { useEffect } from 'react'
-import { useCookies, CookiesProvider } from 'react-cookie'
-import { appWithTranslation } from 'next-i18next'
+import { appWithTranslation } from "next-i18next"
-import type { AppProps } from 'next/app'
-import Layout from '~components/Layout'
+import type { AppProps } from "next/app"
+import Layout from "~components/Layout"
-import { accountState } from '~utils/accountState'
-
-import '../styles/globals.scss'
+import "../styles/globals.scss"
function MyApp({ Component, pageProps }: AppProps) {
- const [cookies] = useCookies(['account'])
-
- useEffect(() => {
- if (cookies.account) {
- console.log(`Logged in as user "${cookies.account.username}"`)
-
- accountState.account.authorized = true
- accountState.account.user = {
- id: cookies.account.user_id,
- username: cookies.account.username,
- picture: '',
- element: '',
- gender: 0
- }
- } else {
- console.log(`You are not currently logged in.`)
- }
- }, [cookies.account])
-
- return (
-
-
-
-
-
- )
+ return (
+
+
+
+ )
}
export default appWithTranslation(MyApp)