diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-25 17:27:32 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-25 17:27:32 +0700 |
| commit | cf6da809621b4ebe8c9acedb035b689e7e1b60b1 (patch) | |
| tree | 5b5a80f7b13066bf3a2342242d6e4fce4b25b5b2 /src-migrate/modules/register/components/FormCaptcha.tsx | |
| parent | 90710579ba1c12060877f6ec2d26103f9c31058d (diff) | |
Update register page
Diffstat (limited to 'src-migrate/modules/register/components/FormCaptcha.tsx')
| -rw-r--r-- | src-migrate/modules/register/components/FormCaptcha.tsx | 14 |
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 |
