mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Remove useUser hook
This commit is contained in:
committed by
Scott Stevenson
parent
07a937d3ea
commit
1265e6119e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user