aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/login.action.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/actions/login.action.js b/src/actions/login.action.js
new file mode 100644
index 0000000..3468e4e
--- /dev/null
+++ b/src/actions/login.action.js
@@ -0,0 +1,16 @@
+import { LOGIN_REQUEST, LOGIN_SUCCESS } from "../utils/constants";
+
+
+export const loginRequest = (payload)=>{
+ return {
+ type: LOGIN_REQUEST,
+ ...payload
+ };
+}
+
+export const loginSuccess = (payload)=>{
+ return {
+ type: LOGIN_SUCCESS,
+ ...payload
+ };
+} \ No newline at end of file