Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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
GH-2032 Style Forgot Password in Hub #535
GH-2032 Style Forgot Password in Hub #535
Changes from 1 commit
ca8d50500e9c383167e208e48b38f9ecd7127b239bb34bb793a5dacc80b6180c6cfbc9File filter
Jump to
Eden12345Apr 27, 2020
•
edited
Contributor
Another option is to have a boolean prop called
hub. Then, all you would need here is to write<ForgotPasswordView hub />, and for the same component in the extension panel you wouldn't have to pass any prop (which will lead to it being falsey). This will also make the logic in yourForgotPassword.jsxfile a little more straightforward. (This is just a suggestion; there is a lot of disagreement online about whether or not this is a good practice, but I prefer it which is why we do it in Insights.)benstrumeyerApr 27, 2020
•
edited
Author
Contributor
I like this idea of boolean props. Changed to hub, however kept the panel variable for better readability
Eden12345Apr 27, 2020
Contributor
Is there no way to use existing Sass from the Hub to take care of this and avoid duplicating markdown? For example, refactoring Sass from individual form components into helper classes in the root Sass file for the Hub, so that you can assign those classes in your
ForgotPassword.jsxfile when you're in the Hub view?benstrumeyerApr 28, 2020
Author
Contributor
Perfect, it looks like we do have the styling for these buttons already. I noticed button widths aren't standardized inside the hub, so we're still going to have to use width here