feat(auth): add selectors for email and password
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export * from "./selectFormValid/selectFormValid";
|
||||
export * from "./selectAuthData/selectAuthData";
|
||||
export * from "./selectStatusIsLoading/selectStatusIsLoading";
|
||||
export * from "./selectEmail/selectEmail";
|
||||
export * from "./selectPassword/selectPassword";
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { AuthStore } from "../../types/store";
|
||||
|
||||
export const selectEmail = (state: AuthStore) =>
|
||||
state.formData?.email?.value ?? "";
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { AuthStore } from "../../types/store";
|
||||
|
||||
export const selectPassword = (state: AuthStore) =>
|
||||
state.formData?.password?.value ?? "";
|
||||
Reference in New Issue
Block a user