Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/geolocation / src / state / actions / geolocationActions.js
Size: Mime:
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,
});