-
Notifications
You must be signed in to change notification settings - Fork 650
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
Display notifications about "New CARTO Platform" release #16352
Conversation
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.
Code LGTM @Josmorsot. Don't merge until QA is finished and after it we need to coordinate with other people too
Image aspect ratio looks a bit distorted if on 'medium' size @Josmorsot: |
const notificationIsVisible = (date) => { | ||
if (date) { | ||
const today = new Date().getTime(); | ||
const duration = 30 * 24 * 60 * 60 * 1000; |
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.
Everytime I see these computations I will appreciate a more clear name, to avoid reading computation itself. So in this case I would just suggest a variable name like 'oneMonth', which has a clearer intention
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.
Looks good to me @Josmorsot. Just minor comment
Show notifications about new CARTO release