🔥 ⚡ Major Update
* Adds Actions, Redicers and Middlewares * Adds Http Service * Adds Cancel option for Http Service * Adds HOC's for API Loader, Sidebar and Headers * Adds Random key generator for Routes
This commit is contained in:
16
src/actions/login.action.js
Normal file
16
src/actions/login.action.js
Normal file
@@ -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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user