From f0754c55496dd7312a20fd7561aba4b3aea572e1 Mon Sep 17 00:00:00 2001 From: EvanLin3141 Date: Sat, 8 Feb 2025 00:49:21 +0000 Subject: [PATCH] FIX: Quick Setting Icon --- frontend/src/components/Layout/ListRow.tsx | 6 +- frontend/src/components/Layout/Navbar.tsx | 24 +++-- .../src/components/Layout/QuickSettings.tsx | 9 ++ frontend/src/components/Layout/file.tsx | 102 ------------------ 4 files changed, 27 insertions(+), 114 deletions(-) create mode 100644 frontend/src/components/Layout/QuickSettings.tsx delete mode 100644 frontend/src/components/Layout/file.tsx diff --git a/frontend/src/components/Layout/ListRow.tsx b/frontend/src/components/Layout/ListRow.tsx index 10fd9f9..7e75bec 100644 --- a/frontend/src/components/Layout/ListRow.tsx +++ b/frontend/src/components/Layout/ListRow.tsx @@ -55,12 +55,12 @@ const ListRow: React.FC = ({
- +
{items.map((item) => ( = ({ ))}
- +
diff --git a/frontend/src/components/Layout/Navbar.tsx b/frontend/src/components/Layout/Navbar.tsx index bfe15dd..64e744f 100644 --- a/frontend/src/components/Layout/Navbar.tsx +++ b/frontend/src/components/Layout/Navbar.tsx @@ -13,6 +13,7 @@ import Input from "./Input"; import AuthModal from "../Auth/AuthModal"; import { useAuthModal } from "../../hooks/useAuthModal"; import { useAuth } from "../../context/AuthContext"; +import QuickSettings from "./QuickSettings"; interface NavbarProps { variant?: "home" | "default"; @@ -22,6 +23,7 @@ const Navbar: React.FC = ({ variant = "default" }) => { const { isLoggedIn } = useAuth(); const { showAuthModal, setShowAuthModal } = useAuthModal(); const [showSideBar, setShowSideBar] = useState(false); + const [showQuickSettings, setShowQuickSettings] = useState(false); const handleLogout = () => { console.log("Logging out..."); @@ -40,11 +42,10 @@ const Navbar: React.FC = ({ variant = "default" }) => { return (