-
Notifications
You must be signed in to change notification settings - Fork 175
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
[JSX] Refactor Modal Component to Support Conditional Form Wrapping #9516
base: main
Are you sure you want to change the base?
Conversation
@ridz1208 I think you're the one that wanted this, can you review? |
@HenriRabalais I am confused because I thought the |
Nevermind, I just realized |
The dataquery changes look minimal when I look at them with |
@maximemulder would you mind reviewing this when you have some spare time? I don't think @ridz1208 has time at the moment. |
PR Description
This pull request refactors the
Modal
component to improve flexibility and maintainability by conditionally wrappingcontent
in aFormElement
if anonSubmit
callback is provided.Key Changes:
Conditional Form Wrapping:
content
in aFormElement
whenonSubmit
is passed as a prop.Simplified JSX Structure:
Preserved Functionality:
Purpose: