@@ -3,15 +3,14 @@ import { BsFillBookmarksFill, BsFillGearFill, BsMoonFill } from 'react-icons/bs'
33import { CgTab } from 'react-icons/cg'
44import { FaUser } from 'react-icons/fa'
55import { IoMdSunny } from 'react-icons/io'
6- import { MdDoDisturbOff } from 'react-icons/md'
6+ import { MdDoDisturbOff , MdFlashOn } from 'react-icons/md'
77import { Link , useLocation , useNavigate } from 'react-router-dom'
88import { ReactComponent as HackertabLogo } from 'src/assets/logo.svg'
99import { SearchBar } from 'src/components/Elements/SearchBar'
1010import { 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
@@ -50,16 +48,6 @@ export const Header = () => {
5048 navigate ( '/settings/general' )
5149 }
5250
53- const BookmarksBadgeCount = ( ) => {
54- return userBookmarks . length > 0 ? (
55- userBookmarks . length < 10 ? (
56- < span className = "badgeCount" > { userBookmarks . length } </ span >
57- ) : (
58- < span className = "badgeCount" > +9</ span >
59- )
60- ) : null
61- }
62-
6351 const onUnpauseClicked = ( ) => {
6452 trackDNDDisable ( )
6553 setDNDDuration ( 'never' )
@@ -96,6 +84,7 @@ export const Header = () => {
9684 < BsFillBookmarksFill />
9785 </ CircleButton >
9886 < CircleButton
87+ className = "profileImageContainer"
9988 onClick = { ( ) => {
10089 if ( isConnected ) {
10190 navigate ( '/settings/general' )
@@ -104,7 +93,14 @@ export const Header = () => {
10493 }
10594 } } >
10695 { isConnected ? (
107- < img className = "profileImage" src = { user ?. imageURL } />
96+ < >
97+ < img className = "profileImage s" src = { user ?. imageURL } />
98+ < div className = "streak" >
99+ < span className = "content" >
100+ < MdFlashOn className = "icon" /> { user ?. streak || 1 }
101+ </ span >
102+ </ div >
103+ </ >
108104 ) : (
109105 < FaUser style = { { fontSize : '1.2em' } } />
110106 ) }
0 commit comments