File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { UserTags } from 'src/components/Elements/UserTags'
1111import { useAuth } from 'src/features/auth'
1212import { Changelog } from 'src/features/changelog'
1313import { identifyUserTheme , trackDNDDisable , trackThemeSelect } from 'src/lib/analytics'
14- import { useBookmarks } from 'src/stores/bookmarks'
1514import { useUserPreferences } from 'src/stores/preferences'
1615import { Button , CircleButton } from '../Elements'
1716
@@ -20,7 +19,6 @@ export const Header = () => {
2019
2120 const [ themeIcon , setThemeIcon ] = useState ( < BsMoonFill /> )
2221 const { theme, setTheme, setDNDDuration, isDNDModeActive } = useUserPreferences ( )
23- const { userBookmarks } = useBookmarks ( )
2422 const navigate = useNavigate ( )
2523 const location = useLocation ( )
2624
@@ -88,13 +86,13 @@ export const Header = () => {
8886 < CircleButton
8987 className = "profileImageContainer"
9088 onClick = { ( ) => {
91- if ( isConnected ( ) ) {
89+ if ( isConnected ) {
9290 navigate ( '/settings/general' )
9391 } else {
9492 openAuthModal ( )
9593 }
9694 } } >
97- { isConnected ( ) ? (
95+ { isConnected ? (
9896 < >
9997 < img className = "profileImage s" src = { user ?. imageURL } />
10098 < div className = "streak" >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const useAuth = () => {
77 const authModalStore = AuthModalStore ( )
88 const authStore = AuthStore ( )
99
10- const isConnected = ( ) => authStore . user != null
10+ const isConnected = authStore . user != null
1111
1212 const logout = async ( ) => {
1313 trackUserDisconnect ( )
You can’t perform that action at this time.
0 commit comments