Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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