Create a UserStreak component (Small fire with a number in it)
Create updateStreak function in a separate file that updates the supabase database values: streak_start_data, streak_end_date, current_streak, longest_streak columns for that user (Does not update the database if the current day matches the streak_end_date)
In FlashcardPage call updateStreak function in a useEffect so it only happens once
Primary Assigned: Nancy
Depends on #28
Requirements:
UserStreak
component (Small fire with a number in it)updateStreak
function in a separate file that updates the supabase database values:streak_start_data
,streak_end_date
,current_streak
,longest_streak
columns for that user (Does not update the database if the current day matches thestreak_end_date
)FlashcardPage
call updateStreak function in auseEffect
so it only happens onceUserStreak
toHeader