refactor(web/input): use form control instead of controlled state

This commit is contained in:
Luke
2023-01-03 18:55:02 +01:00
parent 440a7564a3
commit d0811be0ce
9 changed files with 121 additions and 76 deletions

11
web/pnpm-lock.yaml generated
View File

@@ -38,6 +38,7 @@ specifiers:
prop-types: ^15.8.1
react: 18.2.0
react-dom: 18.2.0
react-hook-form: ^7.41.3
react-hot-toast: ^2.4.0
react-markdown: ^8.0.1
rimraf: ^3.0.2
@@ -69,6 +70,7 @@ dependencies:
prettier: 2.7.1
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
react-hook-form: 7.41.3_react@18.2.0
react-hot-toast: 2.4.0_6dztgcaza2bodipt2i5a4is4mu_npw22p3c4ehm7n7vxn2gqac44u
react-markdown: 8.0.1_bbvjflvjoibwhtpmedigb26h6y
typescript: 4.6.3
@@ -2346,6 +2348,15 @@ packages:
scheduler: 0.23.0
dev: false
/react-hook-form/7.41.3_react@18.2.0:
resolution: {integrity: sha512-5QNTmqJtDb88WV5n41b6+AmcDMVyaJ3tccPgHAgS215w3jZ3bmJhDO27kNTr8u4YHNYXmS7p1/4/KachBAlUtw==}
engines: {node: '>=12.22.0'}
peerDependencies:
react: ^16.8.0 || ^17 || ^18
dependencies:
react: 18.2.0
dev: false
/react-hot-toast/2.4.0_6dztgcaza2bodipt2i5a4is4mu_npw22p3c4ehm7n7vxn2gqac44u:
resolution: {integrity: sha512-qnnVbXropKuwUpriVVosgo8QrB+IaPJCpL8oBI6Ov84uvHZ5QQcTp2qg6ku2wNfgJl6rlQXJIQU5q+5lmPOutA==}
engines: {node: '>=10'}