Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
Created November 17, 2017 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbeletsky/e645bb4ddb8dba0f0c57c4043fc0bffb to your computer and use it in GitHub Desktop.
Save alexbeletsky/e645bb4ddb8dba0f0c57c4043fc0bffb to your computer and use it in GitHub Desktop.
import { createConstants } from '../utils';
const constants = createConstants(
// account actions
'ACCOUNT_FORM_RESET',
'ACCOUNT_FORM_CHANGE',
'ACCOUNT_FORM_ERRORS',
'ACCOUNT_FORM_ERRORS_CLEAN',
'ACCOUNT_ACCESS_TOKEN_FETCHING',
'ACCOUNT_ACCESS_TOKEN_FETCHED',
'ACCOUNT_ACCESS_TOKEN_FETCH_FAILED',
'ACCOUNT_EMAIL_CONFIRMED',
'ACCOUNT_EMAIL_CONFIRMATION_FAILED',
// create website actions
'CREATE_WEBSITE_BLOG_URL_CHANGED',
'CREATE_WEBSITE_BLOG_TITLE_CHANGED',
'CREATE_WEBSITE_BLOG_TITLE_RESOLVE_FAILED',
'CREATE_WEBSITE_STATE_LOADING',
'CREATE_WEBSITE_STATE_LOADED',
'CREATE_WEBSITE_WIZARD_STEP_NEXT',
'CREATE_WEBSITE_WIZARD_STEP_PREV',
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment