-
Notifications
You must be signed in to change notification settings - Fork 5
Add age condition for showing Get Started button #525
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
Conversation
|
Comparison of lighthouse reports:
|
|
Re-ping @oponder @pipo02mix |
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.
I think in terms of codestyle, I will be going towards a recommendation to not have extra logic in the render() function before the return that returns JSX.
I think we should a habit of moving that out into functions.
|
Very valid comment! Fix incoming... |
|
Comparison of lighthouse reports:
|
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.
LGTM
| .diff(moment().utc()) / 1000 | ||
| ); | ||
|
|
||
| return age < 30 * 24 * 60 * 60; |
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.
small perf improvement: calculate this in a class var as constant to avoid do the calculation every call :)
For https://github.com/giantswarm/giantswarm/issues/5410
This hides the
Get Startedbutton in the cluster overview if the cluster is older than 30 days.Preview