-
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: Hide upload eligibility card if no messages #11433
Conversation
If there are no holds or warnings to display, simply show the upload dropzone. This removes the need for the user to click the 'Proceed' button on an empty 'Conflicts' card.
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.
Looking good 👍
* Use `isEligible...` selector to show card before data loads to get placeholders * Ensure we set local state when data has loaded
Nice catch. Addressed in 48cdf41 Makes use of the eligibility card's own placeholders if the data is not yet loaded. |
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.
If there are no holds or warnings to display, simply show the upload dropzone. This removes the need for the user to click the 'Proceed' button on an empty 'Conflicts' card.
To Test
Go to http://calypso.localhost:3000/design/upload and view for different sites.
No errors/warnings before

No errors/warnings after

Note this PR should not interfere with the redesign to the eligibility component in #11394