From 424d939eae603ca24b06d95f302b9994be73ff50 Mon Sep 17 00:00:00 2001 From: Sid-80 Date: Thu, 13 Jun 2024 06:26:30 +0530 Subject: [PATCH] fix: bugs --- src/app/dashboard/_components/SideNav.tsx | 10 +---- src/app/dashboard/layout.tsx | 6 +-- src/app/invite/[id]/page.tsx | 48 +++++++++++------------ src/components/shared/RenameFileModal.tsx | 2 +- src/components/shared/RenameTeamModal.tsx | 2 +- 5 files changed, 29 insertions(+), 39 deletions(-) diff --git a/src/app/dashboard/_components/SideNav.tsx b/src/app/dashboard/_components/SideNav.tsx index c9da489..baf4fac 100644 --- a/src/app/dashboard/_components/SideNav.tsx +++ b/src/app/dashboard/_components/SideNav.tsx @@ -22,7 +22,6 @@ function SideNav() { const { setFileList_ } = useContext(FileListContext); const dispatch = useDispatch(); const { theme } = useTheme(); - const [background, setBackground] = useState("dark"); const [isSidebarOpen, setIsSidebarOpen] = useState(true); const dispatch_nav = useDispatch(); @@ -76,16 +75,9 @@ function SideNav() { setTotalFiles(result?.length); }; - useEffect(() => { - setBackground(theme === "dark" ? "dark" : "light"); - }, [theme]); - return (
diff --git a/src/components/shared/RenameFileModal.tsx b/src/components/shared/RenameFileModal.tsx index 5cf3e6f..078913a 100644 --- a/src/components/shared/RenameFileModal.tsx +++ b/src/components/shared/RenameFileModal.tsx @@ -45,7 +45,7 @@ export default function RenameFileModal({ id }: Props) { File renamed successfully!! - + )} diff --git a/src/components/shared/RenameTeamModal.tsx b/src/components/shared/RenameTeamModal.tsx index 93ef50c..ff0fe16 100644 --- a/src/components/shared/RenameTeamModal.tsx +++ b/src/components/shared/RenameTeamModal.tsx @@ -40,7 +40,7 @@ export default function RenameTeamModal() { Team renamed successfully!! - + )}