Skip to content

Commit

Permalink
chore: Update stories.svg and LeftSidebar component
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Nishitbaria committed May 26, 2024
1 parent 3363591 commit 76caaa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 5 additions & 5 deletions public/assets/icons/stories.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 1 addition & 9 deletions src/components/shared/LeftSidebar.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<nav className="leftsidebar">
Expand Down

0 comments on commit 76caaa2

Please sign in to comment.