Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 5d0bd35

Browse files
author
dengjun
committed
clean up
1 parent 163cc63 commit 5d0bd35

File tree

5 files changed

+1
-24
lines changed

5 files changed

+1
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev-https": "cross-env APPMODE=development webpack-dev-server --https --port 8008",
77
"build": "webpack --mode=${APPMODE:-development} --env.config=${APPENV:-dev}",
88
"analyze": "webpack --mode=production --env.analyze=true",
9-
"lint": "eslint src --ext js,jsx --fix",
9+
"lint": "eslint src --ext js,jsx",
1010
"format": "prettier --write \"./**\"",
1111
"test": "cross-env BABEL_ENV=test jest",
1212
"watch-tests": "cross-env BABEL_ENV=test jest --watch",

src/actions/lookup.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ async function checkIsLoggedIn() {
1313
return service.checkIsLoggedIn();
1414
}
1515

16-
// async function getGigStatuses() {
17-
// return service.getGigStatuses();
18-
// }
19-
2016
/**
2117
* Gets all the countries.
2218
* @returns {Array} Array containing all countries
@@ -47,6 +43,5 @@ export default createActions({
4743
GET_TAGS: getTags,
4844
GET_COMMUNITY_LIST: getCommunityList,
4945
CHECK_IS_LOGGED_IN: checkIsLoggedIn,
50-
// GET_GIG_STATUSES: getGigStatuses,
5146
GET_ALL_COUNTRIES: getAllCountries,
5247
});

src/containers/MyGigs/index.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const MyGigs = ({
1919
total,
2020
numLoaded,
2121
profile,
22-
// statuses,
2322
getProfile,
24-
// getStatuses,
2523
updateProfile,
2624
updateProfileSuccess,
2725
getAllCountries,
@@ -33,7 +31,6 @@ const MyGigs = ({
3331
propsRef.current.getMyGigs();
3432
propsRef.current.getProfile();
3533
propsRef.current.getAllCountries();
36-
// propsRef.current.getStatuses();
3734
}, []);
3835

3936
const [openUpdateProfile, setOpenUpdateProfile] = useState(false);
@@ -78,7 +75,6 @@ const MyGigs = ({
7875
<Modal open={openUpdateProfile}>
7976
<UpdateGigProfile
8077
profile={profile}
81-
// statuses={statuses}
8278
onSubmit={(profileEdit) => {
8379
updateProfile(profileEdit);
8480
setOpenUpdateProfile(false);
@@ -106,9 +102,7 @@ MyGigs.propTypes = {
106102
total: PT.number,
107103
numLoaded: PT.number,
108104
profile: PT.shape(),
109-
// statuses: PT.arrayOf(PT.string),
110105
getProfile: PT.func,
111-
// getStatuses: PT.func,
112106
updateProfile: PT.func,
113107
updateProfileSuccess: PT.bool,
114108
getAllCountries: PT.func,
@@ -119,15 +113,13 @@ const mapStateToProps = (state) => ({
119113
total: state.myGigs.total,
120114
numLoaded: state.myGigs.numLoaded,
121115
profile: state.myGigs.profile,
122-
// statuses: state.lookup.gigStatuses,
123116
updateProfileSuccess: state.myGigs.updatingProfileSucess,
124117
});
125118

126119
const mapDispatchToProps = {
127120
getMyGigs: actions.myGigs.getMyGigs,
128121
loadMore: actions.myGigs.loadMoreMyGigs,
129122
getProfile: actions.myGigs.getProfile,
130-
// getStatuses: actions.lookup.getGigStatuses,
131123
updateProfile: actions.myGigs.updateProfile,
132124
getAllCountries: actions.lookup.getAllCountries,
133125
};

src/reducers/lookup.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ function onCheckIsLoggedInDone(state, { payload }) {
2424
return { ...state, isLoggedIn: payload };
2525
}
2626

27-
// function onGetGigStatusesDone(state, { payload }) {
28-
// return { ...state, gigStatuses: payload };
29-
// }
30-
3127
function onGetAllCountriesDone(state, { payload }) {
3228
return { ...state, countries: payload };
3329
}
@@ -37,7 +33,6 @@ export default handleActions(
3733
GET_TAGS_DONE: onGetTagsDone,
3834
GET_COMMUNITY_LIST_DONE: onGetCommunityListDone,
3935
CHECK_IS_LOGGED_IN_DONE: onCheckIsLoggedInDone,
40-
// GET_GIG_STATUSES_DONE: onGetGigStatusesDone,
4136
GET_ALL_COUNTRIES_DONE: onGetAllCountriesDone,
4237
},
4338
defaultState

src/services/lookup.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ async function getCommunityList() {
5353
);
5454
}
5555

56-
// async function getGigStatuses() {
57-
// return Promise.resolve(myGigsData.gigStatuses);
58-
// }
59-
6056
/**
6157
* Gets paginated countries
6258
* @param {number} page page to fetch
@@ -72,6 +68,5 @@ export default {
7268
getTags,
7369
getCommunityList,
7470
checkIsLoggedIn,
75-
// getGigStatuses,
7671
getPaginatedCountries,
7772
};

0 commit comments

Comments
 (0)