From 0cde78d5fea21c19edb646fb3ad53ea95b128166 Mon Sep 17 00:00:00 2001 From: Shigbeard <4262327+Shigbeard@users.noreply.github.com> Date: Thu, 8 Aug 2024 03:41:58 +1000 Subject: [PATCH] feat: more work on the bans page. --- app/components/Navbar.tsx | 16 +++- app/routes/{bans.tsx => bans/index.tsx} | 121 ++++++++++++++++++++---- app/tailwind.css | 5 + package-lock.json | 99 +++++++++++++++++++ package.json | 2 + sly.json | 11 +++ tailwind.config.ts | 28 +++++- 7 files changed, 257 insertions(+), 25 deletions(-) rename app/routes/{bans.tsx => bans/index.tsx} (63%) create mode 100644 sly.json diff --git a/app/components/Navbar.tsx b/app/components/Navbar.tsx index 4a3a358..42522c9 100644 --- a/app/components/Navbar.tsx +++ b/app/components/Navbar.tsx @@ -48,17 +48,22 @@ export const Navbar: React.FC = (props) => { const handleAuth = () => { if (props.user) { - navigate('/auth/logout'); + navigate('/dashboard'); return; } navigate('/auth/steam'); return } + const logout = () => { + navigate('/auth/logout'); + return; + } + return ( // JSX markup for your component goes here -