Remove useUser hook

This commit is contained in:
Firat Tale
2022-01-07 11:44:31 +01:00
committed by dan13ram
parent 4624ec1ff6
commit 3a303c65a6

View File

@@ -16,7 +16,6 @@ import { LatestContent } from 'components/Dashboard/LatestContent';
import { Leaderboard } from 'components/Dashboard/Leaderboard';
import { Seed } from 'components/Dashboard/Seed';
import { XP } from 'components/Dashboard/XP';
import { useUser } from 'lib/hooks';
import { ReactElement, useEffect, useState } from 'react';
import { Layout, Layouts, Responsive, WidthProvider } from 'react-grid-layout';
@@ -54,7 +53,6 @@ export const Grid = (): ReactElement => {
const [gridLayouts, setGridLayouts] = useState(
JSON.parse(JSON.stringify(originalLayouts)),
);
useUser({ redirectTo: '/community/players', redirectIfNotFound: true });
const [ownLayout, setOwnLayout] = useState(false);
const [changed, setChanged] = useState(false);