Skip to content

Commit 53063b5

Browse files
committed
Update package name and module/builds to follow flux action standard
1 parent a0f8509 commit 53063b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-material-ui-boilerplate",
2+
"name": "react-sample",
33
"version": "1.0.0-alpha",
44
"description": "BoilerPlate For React + Material UI + React Router + Redux",
55
"scripts": {

src/redux/module/builds.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ export const getBuildList = () => {
88
.then((json) => {
99
dispatch({
1010
type: GET_BUILD_LIST,
11-
builds: json,
11+
payload: json,
1212
});
1313
});
1414
};
1515
};
1616
const builds = (state = [], action) => {
1717
switch (action.type) {
1818
case GET_BUILD_LIST:
19-
return action.builds;
19+
return action.payload;
2020
default:
2121
return state;
2222
}

0 commit comments

Comments
 (0)