-
Notifications
You must be signed in to change notification settings - Fork 18
Feature/cookie consent banner #64
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
Feature/cookie consent banner #64
Conversation
|
Hey @muhammedsirajudeen, |
| if (consent==="all") { | ||
| onConsent(true); | ||
| } else { | ||
| const timer = setTimeout(() => { |
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.
Get out this logic to a new function. By this way, it wil be more descriptive with his title.
| <VStack align="start" flex="1"> | ||
| <Text fontWeight="bold" fontSize="md">We use cookies 🍪</Text> | ||
| <Text fontSize="sm"> | ||
| To enhance your experience on FlashNotes. By continuing, you agree to our use of cookies as outlined in our |
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.
Move this text to locales folder and take it with useTranslation react hook.
| py={4} | ||
| zIndex="toast" | ||
| boxShadow="0 -2px 10px rgba(0, 0, 0, 0.2)" | ||
| transform={isVisible ? "translateY(0)" : "translateY(100%)"} |
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.
Move this logic out of the return size to avoid mix logic with cosmetic part
Implemented feature to provide posthog analytics based on purely on user input and persisted it as well based on user preferences #43
Picture