-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Themes: Leave the thanks modal's Visit Site button disabled until theme #8842
Conversation
Tested on Chrome. Design wise I think it's good 👍 |
👍 |
@@ -44,6 +44,10 @@ const ThanksModal = React.createClass( { | |||
page( this.props.site.URL ); | |||
}, | |||
|
|||
visitSiteDisabled() { | |||
return this.props.hasActivated ? false : true; |
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.
Can't we just
return ! this.props.hasActivated;
(and maybe even inline that expression instead of having a method for it?)
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 just like the fact that method name explains its usage in this place.
@ockham Sure, I'll buy that; it's simple enough to grok, and unlikely to ever expand into needing a proper method. |
switch is complete. This will also give a few more moments for Headstart processes to complete.
5b71bea
to
527a2b4
Compare
switch is complete.
This will also give a few more moments for Headstart processes to complete.
Before:
After:
Testing
/design
and activate a new theme.