Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 40a9f83

Browse files
committed
Change name of redux action
1 parent e5bdacb commit 40a9f83

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

frontend/src/actions/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ export function loadApp() {
99

1010
function ApiSuccess(status) {
1111
return {
12-
type: ACTION_TYPES.STATUS_SUCCESS,
12+
type: ACTION_TYPES.API_STATUS_CHECK_SUCCESS,
1313
status
1414
}
1515
}
1616

1717
function ApiFailure(err) {
1818
return {
19-
type: ACTION_TYPES.STATUS_FAILURE,
19+
type: ACTION_TYPES.API_STATUS_CHECK_FAILURE,
2020
err
2121
}
2222
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const ACTION_TYPES = {
22
APP_LOAD: 'APP_LOAD',
3-
STATUS_SUCCESS: 'STATUS_SUCCESS',
4-
STATUS_FAILURE: 'STATUS_FAILURE'
3+
API_STATUS_CHECK_SUCCESS: 'API_STATUS_CHECK_SUCCESS',
4+
API_STATUS_CHECK_FAILURE: 'API_STATUS_CHECK_FAILURE'
55
};

frontend/src/reducers/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export default function app(state = initialState, action) {
99
switch (action.type) {
1010
case ACTION_TYPES.APP_LOAD:
1111
return { ...state, loaded: true };
12-
case ACTION_TYPES.STATUS_SUCCESS:
12+
case ACTION_TYPES.API_STATUS_CHECK_SUCCESS:
1313
return { ...state, apiStatus: action.status }
14-
case ACTION_TYPES.STATUS_FAILURE:
14+
case ACTION_TYPES.API_STATUS_CHECK_FAILURE:
1515
return { ...state, apiStatus: "PROBLEMO" }
1616
default:
1717
return state;

0 commit comments

Comments
 (0)