Permalink
Browse files

Load unit details from sample data

  • Loading branch information...
markerikson committed Dec 1, 2016
1 parent bce3a2d commit 3ccddf180c939351fa8074144d9e2a4c97f60621
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/features/unitInfo/unitInfoReducer.js
@@ -1,12 +1,18 @@
import {createReducer} from "common/utils/reducerUtils";
import {DATA_LOADED} from "features/tools/toolConstants";
const initialState = {
name : "Black Widow Company",
affiliation : "wd",
name : "N/A",
affiliation : "",
};
function dataLoaded(state, payload) {
const {unit} = payload;
return unit;
}
export default createReducer(initialState, {
[DATA_LOADED] : dataLoaded,
});

0 comments on commit 3ccddf1

Please sign in to comment.