Skip to content

Commit

Permalink
Prefix constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jan 25, 2016
1 parent 4b576ed commit 0793af3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/containers/HomePage/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* changes in our state. When you add a new action, you have to add a new constant here
*
* Follow this format:
* export const YOUR_ACTION_CONSTANT = 'YOUR_ACTION_CONSTANT';
* export const YOUR_ACTION_CONSTANT = 'projectName/componentName/YOUR_ACTION_CONSTANT';
*
* The constants are prefixed so there cannot be overlap between constants in different reducers/components
*/
export const CHANGE_PROJECT_NAME = 'CHANGE_PROJECT_NAME';
export const CHANGE_OWNER_NAME = 'CHANGE_OWNER_NAME';
export const CHANGE_PROJECT_NAME = 'boilerplate/HomePage/CHANGE_PROJECT_NAME';
export const CHANGE_OWNER_NAME = 'boilerplate/HomePage/CHANGE_OWNER_NAME';

0 comments on commit 0793af3

Please sign in to comment.