Repository URL to install this package:
|
Version:
0.2.2-rc.2 ▾
|
export const ActionTypes = {
CHANGE_GEOLOCATION: '@doodle/geolocation/CHANGE_GEOLOCATION',
FETCH_GEOLOCATION: '@doodle/geolocation/FETCH_GEOLOCATION',
FETCH_GEOLOCATION_SUCCESS: '@doodle/geolocation/FETCH_GEOLOCATION_SUCCESS',
FETCH_GEOLOCATION_ERROR: '@doodle/geolocation/FETCH_GEOLOCATION_ERROR',
};
export const changeGeolocation = location => ({
type: ActionTypes.CHANGE_GEOLOCATION,
location,
});
export const fetchGeolocation = () => ({
type: ActionTypes.FETCH_GEOLOCATION,
});
export const fetchGeolocationSuccess = () => ({
type: ActionTypes.FETCH_GEOLOCATION_SUCCESS,
});
export const fetchGeolocationError = error => ({
type: ActionTypes.FETCH_GEOLOCATION_ERROR,
error,
});