@@ -162,7 +162,7 @@ const StreakCalendar: React.FC<StreakCalendarProps> = ({
162162 < div className = "flex items-center justify-between mb-[20px]" >
163163 < button
164164 onClick = { handlePreviousMonth }
165- className = "p-2 rounded-lg hover:bg-[#FACC15]/10 transition-colors"
165+ className = "p-2 rounded-lg hover:bg-[#FACC15]/10 transition-colors cursor-pointer "
166166 aria-label = "Previous month"
167167 >
168168 < svg width = "20" height = "20" viewBox = "0 0 20 20" fill = "none" className = "text-[#FACC15]" >
@@ -175,7 +175,7 @@ const StreakCalendar: React.FC<StreakCalendarProps> = ({
175175 </ h2 >
176176 < button
177177 onClick = { handleNextMonth }
178- className = "p-2 rounded-lg hover:bg-[#FACC15]/10 transition-colors"
178+ className = "p-2 rounded-lg hover:bg-[#FACC15]/10 transition-colors cursor-pointer "
179179 aria-label = "Next month"
180180 >
181181 < svg width = "20" height = "20" viewBox = "0 0 20 20" fill = "none" className = "text-[#FACC15]" >
@@ -333,7 +333,8 @@ const DEMO_STREAK_DATA: StreakData = (() => {
333333
334334export default function StreakPage ( ) {
335335 const router = useRouter ( ) ;
336- const [ showShare , setShowShare ] = useState ( false ) ;
336+ const [ showShareCard , setShowShareCard ] = useState ( false ) ;
337+ const [ showShareSheet , setShowShareSheet ] = useState ( false ) ;
337338
338339 const streakCount = 4 ;
339340 const points = 1100 ;
@@ -344,15 +345,15 @@ export default function StreakPage() {
344345 < StreakNavbar
345346 streakCount = { streakCount }
346347 points = { points }
347- onShare = { ( ) => setShowShare ( true ) }
348+ onShare = { ( ) => setShowShareCard ( true ) }
348349 onClose = { ( ) => router . push ( "/dashboard" ) }
349350 />
350351
351352 { /* Page Header */ }
352353 < div className = "w-full flex items-center justify-between px-[16px] md:px-8 pt-6 pb-2 max-w-[700px] mx-auto" >
353354 < button
354355 onClick = { ( ) => router . push ( "/dashboard" ) }
355- className = "p-2 rounded-lg text-white/60 hover:text-white transition-colors"
356+ className = "p-2 rounded-lg text-white/60 hover:text-white transition-colors cursor-pointer "
356357 aria-label = "Close"
357358 >
358359 < svg width = "20" height = "20" viewBox = "0 0 20 20" fill = "none" >
@@ -361,8 +362,8 @@ export default function StreakPage() {
361362 </ button >
362363 < h1 className = "font-nunito font-bold text-white text-lg tracking-wide" > Streak</ h1 >
363364 < button
364- onClick = { ( ) => setShowShare ( true ) }
365- className = "p-2 rounded-lg text-white/60 hover:text-white transition-colors"
365+ onClick = { ( ) => setShowShareCard ( true ) }
366+ className = "p-2 rounded-lg text-white/60 hover:text-white transition-colors cursor-pointer "
366367 aria-label = "Share"
367368 >
368369 < svg width = "20" height = "20" viewBox = "0 0 20 20" fill = "none" >
@@ -401,8 +402,8 @@ export default function StreakPage() {
401402
402403 { /* Share Options Sheet */ }
403404 < ShareOptionsSheet
404- isOpen = { showShare }
405- onClose = { ( ) => setShowShare ( false ) }
405+ isOpen = { showShareSheet }
406+ onClose = { ( ) => setShowShareSheet ( false ) }
406407 onShare = { ( platform ) => {
407408 console . log ( `Sharing streak to ${ platform } ` ) ;
408409 // Handle sharing logic here
@@ -448,10 +449,14 @@ export default function StreakPage() {
448449 } }
449450 />
450451 { /* Share Modal */ }
451- { showShare && (
452+ { showShareCard && (
452453 < ShareStreakCard
453454 streakCount = { streakCount }
454- onClose = { ( ) => setShowShare ( false ) }
455+ onClose = { ( ) => setShowShareCard ( false ) }
456+ onShare = { ( ) => {
457+ setShowShareCard ( false ) ;
458+ setShowShareSheet ( true ) ;
459+ } }
455460 />
456461 ) }
457462 </ div >
0 commit comments