UNPKG

@woocommerce/data

Version:
41 lines (40 loc) 817 B
/** * Internal dependencies */ import TYPES from './action-types'; export function getLocalesSuccess(locales) { return { type: TYPES.GET_LOCALES_SUCCESS, locales, }; } export function getLocalesError(error) { return { type: TYPES.GET_LOCALES_ERROR, error, }; } export function getCountriesSuccess(countries) { return { type: TYPES.GET_COUNTRIES_SUCCESS, countries, }; } export function getCountriesError(error) { return { type: TYPES.GET_COUNTRIES_ERROR, error, }; } export function geolocationSuccess(geolocation) { return { type: TYPES.GEOLOCATION_SUCCESS, geolocation, }; } export function geolocationError(error) { return { type: TYPES.GEOLOCATION_ERROR, error, }; }