added employee folder redux
This commit is contained in:
29
redux/employee/employee.actions.js
Normal file
29
redux/employee/employee.actions.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import EmployeeActionTypes from "./employee.types";
|
||||
|
||||
export const signInEmployeeStart = (employeeIdAndPin) => ({
|
||||
type: EmployeeActionTypes.SIGN_IN_EMPLOYEE_START,
|
||||
payload: employeeIdAndPin,
|
||||
});
|
||||
|
||||
export const signInEmployeeSuccess = (technician) => ({
|
||||
type: EmployeeActionTypes.SIGN_IN_EMPLOYEE_SUCCESS,
|
||||
payload: technician,
|
||||
});
|
||||
|
||||
export const signInEmployeeFailure = (error) => ({
|
||||
type: EmployeeActionTypes.SIGN_IN_EMPLOYEE_FAILURE,
|
||||
payload: error,
|
||||
});
|
||||
|
||||
export function loginEmployee() {
|
||||
return {
|
||||
type: EmployeeActionTypes.AUTHORIZING_EMPLOYEE_REQUEST,
|
||||
payload:"text"
|
||||
}
|
||||
}
|
||||
export function loginEmployeeSuccess(technician) {
|
||||
return {
|
||||
type: EmployeeActionTypes.AUTHORIZING_EMPLOYEE_SUCCESS,
|
||||
payload: technician
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user