added create contact flow for registration
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import actions from "redux-form/lib/actions";
|
||||
|
||||
export const AccountDetailsDataActionTypes = {
|
||||
GETACCOUNTDETAILSDATA: "GETACCOUNTDETAILSDATA",
|
||||
SETACCOUNTDETAILSDATA: "SETACCOUNTDETAILSDATA",
|
||||
SETLOGGEDINUSER: "SETLOGGEDINUSER",
|
||||
SETACCOUNTCREATED: "SETACCOUNTCREATED",
|
||||
USER_LOGOUT: "USER_LOGOUT",
|
||||
};
|
||||
|
||||
export const getAccountDetailsObj = () => (dispatch) => {
|
||||
@@ -29,3 +33,10 @@ export const setLogout = () => (dispatch) => {
|
||||
type: "USER_LOGOUT",
|
||||
});
|
||||
};
|
||||
|
||||
export const setAccCr = (accCr) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: AccountDetailsDataActionTypes.SETACCOUNTCREATED,
|
||||
accCr: accCr,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@ import { AccountDetailsDataActionTypes } from "./action";
|
||||
const AccountDetailsDataInitialState = {
|
||||
accountDetails: {},
|
||||
loggedinUserId: "",
|
||||
accCr: false,
|
||||
};
|
||||
|
||||
export default function reducer(
|
||||
@@ -20,6 +21,11 @@ export default function reducer(
|
||||
...state,
|
||||
loggedinUserId: action.loggedinUserId,
|
||||
};
|
||||
case AccountDetailsDataActionTypes.SETACCOUNTCREATED:
|
||||
return {
|
||||
...state,
|
||||
accCr: action.accCr,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user