-
Notifications
You must be signed in to change notification settings - Fork 54
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
modal instead of dropdown for new FB creation form #762
modal instead of dropdown for new FB creation form #762
Conversation
@barrytra Nice! Works exactly as expected. Great work! 🚀
📸i.e. by using: <rb.Modal show={isExpanded} animation={true} backdrop="static" centered={true} onHide={() => setIsExpanded(false)}>
<rb.Modal.Header closeButton>
<rb.Modal.Title>{t('earn.fidelity_bond.create_fidelity_bond.title')}</rb.Modal.Title>
</rb.Modal.Header>
<rb.Modal.Body>
[...]
</rb.Modal.Body>
</rb.Modal> See file
What do you think? |
Good thinking! Imho, it is okay and better to stay consistent. Header color in light mode can be changed in a different PR, if needed! tACK. Thanks @barrytra 💪 |
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.
yup! It's working fine. Good job, @barrytra
It seems, with this change, the alert is displayed outside of the modal in case something is wrong. Would you be able to take another look @barrytra ? |
Ahh!! I get it. It was actually placed initially according to dropdown. This should be fixed. |
Also can you suggest a way to produce this error?? |
That would probably be best, yes. Otherwise it might not be visible to the user.
You can temporarily adapt the request code and throw an error here. |
this PR fixes #760
When user clicks "configure fidelity bond" modal appears like this:
Whole flow to create new bond works fine on my setup.
Open to any kind of suggestions.
PS: Cross Button at top-right functions same as cancel button. I've kept it as it will be useful for later UI design.