From 48d20331fc0ab115150f2d1a1fd4b98cd0316755 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Tue, 8 Aug 2023 22:36:43 -0600 Subject: [PATCH 1/2] Stats + removing FC --- src/components/Footer.tsx | 16 +++---- src/components/Navbar.tsx | 2 +- src/components/RoomList.tsx | 36 +++++++-------- src/components/Stats.tsx | 83 ++++++++++++++++++++++++++++++++++ src/pages/admin/index.tsx | 68 ++-------------------------- src/pages/dashboard/index.tsx | 2 +- src/pages/index.tsx | 10 +++- src/pages/profile/index.tsx | 2 +- src/pages/room/[id].tsx | 2 +- src/server/api/routers/room.ts | 12 +++++ src/server/api/routers/user.ts | 8 ++++ src/server/api/routers/vote.ts | 6 +++ src/server/auth.ts | 8 ++++ src/utils/types.ts | 1 + 14 files changed, 162 insertions(+), 94 deletions(-) create mode 100644 src/components/Stats.tsx diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index fafc297..03d153e 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,14 +1,14 @@ import { GiTechnoHeart } from "react-icons/gi"; import packagejson from "../../package.json"; -const Footer: React.FC = () => { +const Footer = () => { return (