개발환경 변경 및 설명 추가
This commit is contained in:
@@ -66,6 +66,22 @@ export const useAuthStore = create<AuthState>((set: any) => ({
|
||||
setAuthStatus: (status: AuthStatus) => set({ authStatus: status }),
|
||||
}));
|
||||
|
||||
// The temporary ID and password typed on the sign in page, handed to the account change page.
|
||||
// Kept in memory only: a reload loses it and sends the user back to sign in.
|
||||
type InitAccountState = {
|
||||
user_id: string;
|
||||
user_pw: string;
|
||||
setInitAccount: (user_id: string, user_pw: string) => void;
|
||||
clearInitAccount: () => void;
|
||||
};
|
||||
|
||||
export const useInitAccountStore = create<InitAccountState>((set) => ({
|
||||
user_id: "",
|
||||
user_pw: "",
|
||||
setInitAccount: (user_id: string, user_pw: string) => set({ user_id, user_pw }),
|
||||
clearInitAccount: () => set({ user_id: "", user_pw: "" }),
|
||||
}));
|
||||
|
||||
type UiLoadingState = {
|
||||
pendingCount: number;
|
||||
treePendingCount: number;
|
||||
|
||||
Reference in New Issue
Block a user