update
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-24 12:58:08 +03:30
parent 74fec3d2be
commit 8563508674
4 changed files with 15 additions and 5 deletions
+11 -4
View File
@@ -1,21 +1,28 @@
import { create } from "zustand";
import { type AuthStoreType } from "../../auth/types/AuthTypes";
export const useAuthStore = create<AuthStoreType>((set) => ({
const initialState = {
phone: "",
email: "",
stepLogin: 1,
devOtpCode: "",
};
export const useAuthStore = create<AuthStoreType>((set) => ({
...initialState,
setPhone(value) {
set({ phone: value });
},
email: "",
setEmail(value) {
set({ email: value });
},
stepLogin: 1,
setStepLogin(value) {
set({ stepLogin: value });
},
devOtpCode: "",
setDevOtpCode(value) {
set({ devOtpCode: value });
},
reset() {
set({ ...initialState });
},
}));
+1
View File
@@ -15,6 +15,7 @@ export type AuthStoreType = {
/** TODO: remove before production — dev-only OTP from API response */
devOtpCode: string;
setDevOtpCode: (value: string) => void;
reset: () => void;
};
export type LoginWithPasswordType = {