Skip to content

Instantly share code, notes, and snippets.

@anyley
Created July 6, 2019 20:56
Show Gist options
  • Save anyley/5c580a2ab9b8878dfef41925d8743351 to your computer and use it in GitHub Desktop.
Save anyley/5c580a2ab9b8878dfef41925d8743351 to your computer and use it in GitHub Desktop.
govno-redux-actions
import { createActions } from 'redux-actions';
const {
auth: {
sendCode,
sendCodeSuccess,
sendCodeError,
checkCode,
checkCodeSuccess,
checkCodeError,
getProfiles,
getProfilesSuccess,
getProfilesError,
}
} = createActions({
AUTH: {
SEND_CODE: null,
SEND_CODE_SUCCESS: null,
SEND_CODE_ERROR: null,
CHECK_CODE: null,
CHECK_CODE_SUCCESS: null,
CHECK_CODE_ERROR: null,
GET_PROFILES: null,
GET_PROFILES_SUCCESS: null,
GET_PROFILES_ERROR: null,
}
});
export {
sendCode,
sendCodeSuccess,
sendCodeError,
checkCode,
checkCodeSuccess,
checkCodeError,
getProfiles,
getProfilesSuccess,
getProfilesError,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment