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

Commit 9b46724

Browse files
author
dengjun
committed
ci:remove phases
1 parent ca744e3 commit 9b46724

File tree

5 files changed

+1
-31
lines changed

5 files changed

+1
-31
lines changed

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 getGigPhases() {
17-
return service.getGigPhases();
18-
}
19-
2016
async function getGigStatuses() {
2117
return service.getGigStatuses();
2218
}
@@ -25,6 +21,5 @@ export default createActions({
2521
GET_TAGS: getTags,
2622
GET_COMMUNITY_LIST: getCommunityList,
2723
CHECK_IS_LOGGED_IN: checkIsLoggedIn,
28-
GET_GIG_PHASES: getGigPhases,
2924
GET_GIG_STATUSES: getGigStatuses,
3025
});

src/assets/data/my-gigs.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"phases":[
3-
"Applied",
4-
"Phone Screen",
5-
"Screen Pass",
6-
"Interview Process",
7-
"Selected",
8-
"Offered",
9-
"Placed"
10-
],
112
"gigProfile":{
123
"handle":"handle",
134
"photoURL":"",

src/containers/MyGigs/index.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import "./styles.scss";
1313

1414
const MyGigs = ({
1515
myGigs,
16-
phases,
17-
getPhases,
1816
getMyGigs,
1917
loadMore,
2018
total,
@@ -27,11 +25,10 @@ const MyGigs = ({
2725
updateProfileSuccess,
2826
}) => {
2927
const propsRef = useRef();
30-
propsRef.current = { getMyGigs, getPhases, getProfile, getStatuses };
28+
propsRef.current = { getMyGigs, getProfile, getStatuses };
3129

3230
useEffect(() => {
3331
propsRef.current.getMyGigs();
34-
propsRef.current.getPhases();
3532
propsRef.current.getProfile();
3633
propsRef.current.getStatuses();
3734
}, []);
@@ -63,7 +60,6 @@ const MyGigs = ({
6360
</h1>
6461
<JobListing
6562
jobs={myGigs}
66-
phases={phases}
6763
loadMore={loadMore}
6864
total={total}
6965
numLoaded={numLoaded}
@@ -111,7 +107,6 @@ const mapStateToProps = (state) => ({
111107
myGigs: state.myGigs.myGigs,
112108
total: state.myGigs.total,
113109
numLoaded: state.myGigs.numLoaded,
114-
phases: state.lookup.gigPhases,
115110
profile: state.myGigs.profile,
116111
statuses: state.lookup.gigStatuses,
117112
updateProfileSuccess: state.myGigs.updatingProfileSucess,
@@ -120,7 +115,6 @@ const mapStateToProps = (state) => ({
120115
const mapDispatchToProps = {
121116
getMyGigs: actions.myGigs.getMyGigs,
122117
loadMore: actions.myGigs.loadMoreMyGigs,
123-
getPhases: actions.lookup.getGigPhases,
124118
getProfile: actions.myGigs.getProfile,
125119
getStatuses: actions.lookup.getGigStatuses,
126120
updateProfile: actions.myGigs.updateProfile,

src/reducers/lookup.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const defaultState = {
88
tags: [],
99
subCommunities: [],
1010
isLoggedIn: null,
11-
gigPhases: [],
1211
gigStatuses: [],
1312
};
1413

@@ -24,9 +23,6 @@ function onCheckIsLoggedInDone(state, { payload }) {
2423
return { ...state, isLoggedIn: payload };
2524
}
2625

27-
function onGetGigPhasesDone(state, { payload }) {
28-
return { ...state, gigPhases: payload };
29-
}
3026

3127
function onGetGigStatusesDone(state, { payload }) {
3228
return { ...state, gigStatuses: payload };
@@ -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_PHASES_DONE: onGetGigPhasesDone,
4136
GET_GIG_STATUSES_DONE: onGetGigStatusesDone,
4237
},
4338
defaultState

src/services/lookup.js

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

57-
async function getGigPhases() {
58-
return Promise.resolve(myGigsData.phases);
59-
}
60-
6157
async function getGigStatuses() {
6258
return Promise.resolve(myGigsData.gigStatuses);
6359
}
@@ -66,6 +62,5 @@ export default {
6662
getTags,
6763
getCommunityList,
6864
checkIsLoggedIn,
69-
getGigPhases,
7065
getGigStatuses,
7166
};

0 commit comments

Comments
 (0)