From 76caaa241b5c7accfb3681541eac16ff62f12b6e Mon Sep 17 00:00:00 2001
From: Nishitbariya <85815172+Nishitbaria@users.noreply.github.com>
Date: Sun, 26 May 2024 11:00:25 +0530
Subject: [PATCH] chore: Update stories.svg and LeftSidebar component
Refactor stories.svg to update the fill color to #877EFF. This change improves the visual consistency of the icon.
Refactor LeftSidebar component to remove unused imports and useEffect dependencies. This improves the readability and performance of the component.
Related recent commits:
- chore: Refactor Home and StoriesContainer components for improved readability and performance
- chore: Refactor Home component for improved readability and performance
- chore: Update appwriteConfig to use correct stories collection ID
- fix: some Ui Part of code
- Merge branch 'main' into storyui
- Merge pull request #109 from Unalia09/main
- Update SigninForm.tsx
- Corrected the grammatical error
- Merge pull request #91 from sambitsingha/main
- [Feature] - Custom 404 Not Found page added
- Added a timer functionality which will redirect the user back to the home page, after seeing the 404 page
- Merge branch 'Nishitbaria:main' into main
---
public/assets/icons/stories.svg | 10 +++++-----
src/components/shared/LeftSidebar.tsx | 10 +---------
2 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/public/assets/icons/stories.svg b/public/assets/icons/stories.svg
index 143b0f7..1f12e94 100644
--- a/public/assets/icons/stories.svg
+++ b/public/assets/icons/stories.svg
@@ -1,8 +1,8 @@
\ No newline at end of file
diff --git a/src/components/shared/LeftSidebar.tsx b/src/components/shared/LeftSidebar.tsx
index 76cf5c9..ad7a1a6 100644
--- a/src/components/shared/LeftSidebar.tsx
+++ b/src/components/shared/LeftSidebar.tsx
@@ -1,19 +1,11 @@
-import { useEffect } from "react";
-import { Link, useNavigate, NavLink, useLocation } from "react-router-dom";
-import { useSignOutAccount } from "@/lib/react-query/queriesAndMutations";
+import { Link, NavLink, useLocation } from "react-router-dom";
import { useUserContext } from "@/context/AuthContext";
import { sidebarLinks } from "@/constants";
import { INavLink } from "@/types";
-import LogOut from "./Logout";
const LeftSidebar = () => {
- const navigate = useNavigate();
const { user } = useUserContext();
- const { mutate: signOut, isSuccess } = useSignOutAccount();
const { pathname } = useLocation();
- useEffect(() => {
- if (isSuccess) navigate(0);
- }, [isSuccess]);
return (