Repository navigation
Move useForm inside SideModalForm - #1259
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
david-crespo
added a commit
that referenced
this pull request
Oct 26, 2022
* can almost render?
* renders but doesn't validate and the types are still borked
* it kind of validates and the errors show up
* reset form on modal close, buncha TODO comments
* fix one type error, add another todo
* shut up the last type error
* validate on all change events so typing immediately enables submit
* move RHF things into their own folder
* add description field
* we don't actually need our own Form file
* don't need that class
* cleanup
* simplify side modal form props types
* dialogProps is now empty
* remove another props spread
* convert org edit too (easy peasy)
* don't pass ref to TextInput
* don't hard code the names of the fields
* "what the hell?" no more
* label is required
* ${label} is required
Co-authored-by: Justin Bennett <[email protected]>
* forward ref to TextInput, whatever
* pass way less to SideModalForm
* fix extra submit button on org edit
* don't spread props
* inline Form logic in SideModalForm
* get rid of SideModal id prop, fix SideModalForm title
* make e2e tests pass the easy way
* Update app/components/hook-form/fields/TextField.tsx
Co-authored-by: Justin Bennett <[email protected]>
* no cast!
* Move `useForm` inside `SideModalForm` (#1259)
* move useForm call inside SideModalForm, use render prop to pass control
* let SideModalForm take all the useForm props, not just defaultValues
* pull field error directly from fieldState
Co-authored-by: Justin Bennett <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.