-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add /claim-your-gift and fix bugs #1987
Conversation
stroke: ${color}; | ||
} | ||
`; | ||
useLayoutEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid snake animation from restarting in every new render. This was happening for example every time you pressed a button or updated something in any page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't look at this ugly hack, I had to hardcode the entire font in base64 in order for the downloaded svg to use the correct font
const timeToRelease = Math.max(0, targetDate.getTime() - now.getTime()); | ||
const timeToRelease = Math.max( | ||
0, | ||
Math.min(2147483647, targetDate.getTime() - now.getTime()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setTimeout only supports numbers lower than 2³²
@@ -61,21 +56,6 @@ const CalendarView = () => { | |||
}; | |||
|
|||
const [achievements, setAchievements] = useState([]); | |||
const [availableDays, setAvailableDays] = useState([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused code
@@ -62,26 +60,6 @@ const ProgressView = () => { | |||
setAchievements(achievementsState); | |||
}, []); | |||
|
|||
const handleClearData = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused code
No description provided.