update deps, added logout clear store
This commit is contained in:
@@ -9,7 +9,8 @@ import {
|
||||
SET_FORM_PASSWORD,
|
||||
SET_FORM_PASSWORD_CONFIRMATION,
|
||||
SET_FORM_EMAIL_VERIFICATION,
|
||||
SET_FORM_OLD_PASSWORD
|
||||
SET_FORM_OLD_PASSWORD,
|
||||
SET_CLEAR_AUTH_STATE
|
||||
} from "../../constants/auth.constants";
|
||||
import { parseError } from "../common.actions";
|
||||
|
||||
@@ -137,3 +138,9 @@ export function setFormOldPassword(oldPassword) {
|
||||
data: oldPassword
|
||||
};
|
||||
}
|
||||
|
||||
export function setClearAuthState() {
|
||||
return {
|
||||
type: SET_CLEAR_AUTH_STATE
|
||||
};
|
||||
}
|
||||
|
@@ -10,7 +10,8 @@ import {
|
||||
SET_FORM_PHONE_NUMBER,
|
||||
SET_FORM_BUSINESS_NUMBER,
|
||||
SET_FORM_SOCIAL_INSURANCE_NUMBER,
|
||||
SET_EDIT_PROFILE_TAB_ACTIVE_INDEX
|
||||
SET_EDIT_PROFILE_TAB_ACTIVE_INDEX,
|
||||
SET_CLEAR_USER_STATE
|
||||
} from "../../constants/user.constants";
|
||||
import { parseError } from "../common.actions";
|
||||
|
||||
@@ -102,3 +103,9 @@ export function setEditProfileTabActiveIndex(indexVal) {
|
||||
data: indexVal
|
||||
};
|
||||
}
|
||||
|
||||
export function setClearUserState() {
|
||||
return {
|
||||
type: SET_CLEAR_USER_STATE
|
||||
};
|
||||
}
|
||||
|
@@ -6,7 +6,8 @@ import {
|
||||
CLEAR_WORKTYPE_REQUEST_SUCCESS,
|
||||
SET_WORKTYPE_UUID,
|
||||
SET_FORM_WORKTYPE_COLOR,
|
||||
SET_FORM_WORKTYPE_LABEL
|
||||
SET_FORM_WORKTYPE_LABEL,
|
||||
SET_CLEAR_WORKTYPE_STATE
|
||||
} from "../../constants/worktype.constants";
|
||||
import { parseError } from "../common.actions";
|
||||
|
||||
@@ -72,3 +73,9 @@ export function setFormWorktypeLabel(label) {
|
||||
data: label
|
||||
};
|
||||
}
|
||||
|
||||
export function setClearWorktypeState() {
|
||||
return {
|
||||
type: SET_CLEAR_WORKTYPE_STATE
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user