diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-30 09:21:30 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-30 09:21:30 +0700 |
| commit | e8c414325a1e32474e740cc6e7dca8396affc5e3 (patch) | |
| tree | e84feb31cd8619d208b4558c5fcf30becc5337e0 /src-migrate/modules/register/components/FormCaptcha.tsx | |
| parent | 1694c12f75ad06c5e40d6f9a66e245c3e683146c (diff) | |
| parent | c82110f7d3a2f85de99045fde7b579e369f15b2c (diff) | |
Merge branch 'refactor/all' into development
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 |
