Permalink
Browse files

Step 7: Create '~/actions/miniDashboardActions.js' and add constants …

…to '~/constants.js'.
  • Loading branch information...
embengineering committed May 22, 2016
1 parent 9d3d9a5 commit 491aab1bc13b80b039b194125ccc280eae4abed4
Showing with 13 additions and 3 deletions.
  1. +11 −0 src/actions/miniDashboardActions.js
  2. +2 −3 src/constants.js
@@ -0,0 +1,11 @@
import * as CONST from '../constants';
export const displayWelcomeCard = (data) => ({
type: CONST.DISPLAY_WELCOME_CARD,
data: data
});
export const displayCardList = (data) => ({
type: CONST.DISPLAY_CARD_LIST,
data: data
});
@@ -1,3 +1,2 @@
// exmaple of redux re-usable constants
// export const DISPLAY_WELCOME_MSG = 'DISPLAY_WELCOME_MSG';
// export const RETRIEVE_MINIDASHBOARD_ENTRIES = 'RETRIEVE_MINIDASHBOARD_ENTRIES';
export const DISPLAY_WELCOME_CARD = 'DISPLAY_WELCOME_CARD';
export const DISPLAY_CARD_LIST = 'DISPLAY_CARD_LIST';

0 comments on commit 491aab1

Please sign in to comment.