summaryrefslogtreecommitdiff
path: root/src-migrate/common/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/common/stores')
-rw-r--r--src-migrate/common/stores/useRegisterStore.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src-migrate/common/stores/useRegisterStore.ts b/src-migrate/common/stores/useRegisterStore.ts
index fcd2cd8b..725bbfda 100644
--- a/src-migrate/common/stores/useRegisterStore.ts
+++ b/src-migrate/common/stores/useRegisterStore.ts
@@ -6,10 +6,12 @@ type State = {
isValid: boolean;
isCheckedTNC: boolean;
isOpenTNC: boolean;
+ isValidCaptcha: boolean;
};
type Action = {
updateForm: (name: string, value: string) => void;
+ updateValidCaptcha: (value: boolean) => void;
toggleCheckTNC: () => void;
openTNC: () => void;
closeTNC: () => void;
@@ -21,10 +23,12 @@ export const useRegisterStore = create<State & Action>((set) => ({
name: '',
email: '',
password: '',
+ phone: '',
},
isValid: false,
isCheckedTNC: false,
isOpenTNC: false,
+ isValidCaptcha: false,
updateForm: (name, value) =>
set((state) => {
const updatedForm = { ...state.form, [name]: value };
@@ -49,4 +53,5 @@ export const useRegisterStore = create<State & Action>((set) => ({
toggleCheckTNC: () => set((state) => ({ isCheckedTNC: !state.isCheckedTNC })),
openTNC: () => set(() => ({ isOpenTNC: true })),
closeTNC: () => set(() => ({ isOpenTNC: false })),
+ updateValidCaptcha: (value) => set(() => ({ isValidCaptcha: value })),
}));