-
Notifications
You must be signed in to change notification settings - Fork 189
[JSX] Refactor Modal Component to Support Conditional Form Wrapping #9516
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
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. |
added changes from lack of rebase updated formelement props modify uses of modal to avoid form nesting resolving lint
0151ad4 to
908c956
Compare
PR Description
This pull request refactors the
Modalcomponent to improve flexibility and maintainability by conditionally wrappingcontentin aFormElementif anonSubmitcallback is provided.Key Changes:
Conditional Form Wrapping:
contentin aFormElementwhenonSubmitis passed as a prop.Simplified JSX Structure:
Preserved Functionality:
Purpose: