Skip to content

Commit

Permalink
refactor(sidebar): combine useContext (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy authored Apr 16, 2024
1 parent da2bf1c commit bbad3e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export const Sidebar: FC = () => {
const navigate = useNavigate();
const location = useLocation();

const { isLoggedIn } = useContext(AppContext);
const { notifications, fetchNotifications, isFetching } =
const { notifications, fetchNotifications, isLoggedIn, isFetching } =
useContext(AppContext);

const onOpenBrowser = useCallback(() => {
Expand Down

0 comments on commit bbad3e9

Please sign in to comment.