File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,25 @@ const initState = {
1515}
1616
1717/* Action types */
18- const START_FETCH_DUST = 'dust/START_FETCH_DUST ' ;
18+ const REQUEST_FETCH_DUST = 'dust/REQUEST_FETCH_DUST ' ;
1919const SUCCESS_FETCH_DUST = 'dust/SUCCESS_FETCH_DUST' ;
2020const FAILED_FETCH_DUST = 'dust/FAILED_FETCH_DUST' ;
2121
2222export const ActionTypes = {
23- START_FETCH_DUST ,
23+ REQUEST_FETCH_DUST ,
2424 SUCCESS_FETCH_DUST ,
2525 FAILED_FETCH_DUST
2626}
2727
2828
2929/* Action creators */
30- export const startFetchDust = createAction ( START_FETCH_DUST ) ;
30+ export const requestFetchDust = createAction ( REQUEST_FETCH_DUST ) ;
3131export const successFetchDust = createAction ( SUCCESS_FETCH_DUST ) ;
3232export const failedFetchDust = createAction ( FAILED_FETCH_DUST ) ;
3333
3434/* Side effects */
3535export const getDust = ( region ) => async ( dispatch ) => {
36- dispatch ( startFetchDust ( ) ) ;
36+ dispatch ( requestFetchDust ( ) ) ;
3737
3838 try {
3939 const response = await fetch ( getApi ( region ) , {
@@ -56,7 +56,7 @@ const getApi = (region) => `https://9z2zrff9fe.execute-api.ap-northeast-2.amazon
5656
5757/* reducers */
5858export default handleActions ( {
59- [ START_FETCH_DUST ] : ( state , action ) => {
59+ [ REQUEST_FETCH_DUST ] : ( state , action ) => {
6060 return updateObj ( state , {
6161 pending : true ,
6262 failed : false ,
You can’t perform that action at this time.
0 commit comments