%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/def/static/js/actions/ |
Current File : /home/emergentqj/actioncivile/pre-auth/def/static/js/actions/countryActions.js |
import LIST_ACTIONS from "constants/action_types"; import { setCountryCookie } from "utils"; const _setCountry = (payload) => ({ type: LIST_ACTIONS.SET_COUNTRY, payload, }); // eslint-disable-next-line import/prefer-default-export export const setCountry = (countryCode) => (dispatch) => { setCountryCookie(countryCode); dispatch(_setCountry(countryCode)); };