feat(auth): add selectors for email and password
This commit is contained in:
1 parent
87511398fb
commit
69d026afce
3 files changed
+10
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
export * from "./selectFormValid/selectFormValid";
|
export * from "./selectFormValid/selectFormValid";
|
||||||
export * from "./selectAuthData/selectAuthData";
|
export * from "./selectAuthData/selectAuthData";
|
||||||
export * from "./selectStatusIsLoading/selectStatusIsLoading";
|
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