diff --git a/frontend/src/components/Footer/index.jsx b/frontend/src/components/Footer/index.jsx
index 4b175405..17048980 100644
--- a/frontend/src/components/Footer/index.jsx
+++ b/frontend/src/components/Footer/index.jsx
@@ -1,6 +1,5 @@
import System from "@/models/system";
import paths from "@/utils/paths";
-import { safeJsonParse } from "@/utils/request";
import {
BookOpen,
DiscordLogo,
diff --git a/frontend/src/components/SettingsButton/index.jsx b/frontend/src/components/SettingsButton/index.jsx
index 18c7b1a1..ae3aeb9f 100644
--- a/frontend/src/components/SettingsButton/index.jsx
+++ b/frontend/src/components/SettingsButton/index.jsx
@@ -1,17 +1,29 @@
import useUser from "@/hooks/useUser";
import paths from "@/utils/paths";
-import { Wrench } from "@phosphor-icons/react";
+import { ArrowUUpLeft, Wrench } from "@phosphor-icons/react";
+import { Link } from "react-router-dom";
+import { useMatch } from "react-router-dom";
export default function SettingsButton() {
+ const isInSettings = !!useMatch("/settings/*");
const { user } = useUser();
+
+ if (isInSettings)
+ return (
+
+
diff --git a/frontend/src/components/Sidebar/index.jsx b/frontend/src/components/Sidebar/index.jsx index 0c38eb77..13aaeee1 100644 --- a/frontend/src/components/Sidebar/index.jsx +++ b/frontend/src/components/Sidebar/index.jsx @@ -9,6 +9,8 @@ import useLogo from "@/hooks/useLogo"; import useUser from "@/hooks/useUser"; import Footer from "../Footer"; import SettingsButton from "../SettingsButton"; +import { Link } from "react-router-dom"; +import paths from "@/utils/paths"; export default function Sidebar() { const { user } = useUser(); @@ -22,14 +24,17 @@ export default function Sidebar() { return (