Permalink
Browse files

Step 8: Create '~/reducers/welcomeCardReducer.js'.

  • Loading branch information...
embengineering committed May 22, 2016
1 parent 491aab1 commit 688e59f7532f90a20537ddbc27bb710f4ebf0d8b
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/reducers/welcomeCardReducer.js
@@ -0,0 +1,13 @@
import * as CONST from '../constants';
import initialState from '../initialState';
const welcomeCardReducer = (state = initialState.welcomeCard, {type, data}) => {
switch (type) {
case CONST.DISPLAY_WELCOME_CARD:
return Object.assign({}, state, data);
default:
return state;
}
};
export default welcomeCardReducer;

0 comments on commit 688e59f

Please sign in to comment.