summaryrefslogtreecommitdiff
path: root/src-migrate/modules/register/components/FormCaptcha.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/modules/register/components/FormCaptcha.tsx')
-rw-r--r--src-migrate/modules/register/components/FormCaptcha.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-migrate/modules/register/components/FormCaptcha.tsx b/src-migrate/modules/register/components/FormCaptcha.tsx
new file mode 100644
index 00000000..967be017
--- /dev/null
+++ b/src-migrate/modules/register/components/FormCaptcha.tsx
@@ -0,0 +1,14 @@
+import ReCaptcha from '~/common/components/elements/ReCaptcha'
+import { useRegisterStore } from '~/common/stores/useRegisterStore'
+
+const FormCaptcha = () => {
+ const { updateValidCaptcha } = useRegisterStore()
+
+ const handleCaptchaChange = (value: string | null) => {
+ updateValidCaptcha(value !== null)
+ }
+
+ return <ReCaptcha onChange={handleCaptchaChange} />
+}
+
+export default FormCaptcha \ No newline at end of file