diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index c5cf4e712..5081e077b 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,7 +1,7 @@ import * as Octicons from '@primer/octicons-react'; import { ipcRenderer, shell } from 'electron'; import React, { useCallback, useContext, useMemo } from 'react'; -import { useHistory } from 'react-router-dom'; +import { useHistory, useLocation } from 'react-router-dom'; import { Logo } from '../components/Logo'; import { AppContext } from '../context/App'; @@ -12,6 +12,7 @@ import { Constants } from '../utils/constants'; export const Sidebar: React.FC = () => { const history = useHistory(); + const location = useLocation(); const { isLoggedIn } = useContext(AppContext); const { notifications, fetchNotifications } = useContext(AppContext); @@ -64,7 +65,10 @@ export const Sidebar: React.FC = () => { <>