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

Commit eff0511

Browse files
authored
Merge pull request #235 from topcoder-platform/CORE-287
CORE-287 Modify EARN app to only show My Gigs
2 parents f36b42f + f91cfb2 commit eff0511

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ workflows:
7878
branches:
7979
only:
8080
- dev
81+
- CORE-287
8182

8283
# Production builds are exectuted only on tagged commits to the
8384
# master branch.

src/App.jsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Main App component
33
*/
44
import React, { useLayoutEffect, useEffect, useRef } from "react";
5-
import { Router, useLocation, Redirect } from "@reach/router";
5+
import { Router, useLocation } from "@reach/router";
66
import { disableSidebarForRoute } from "@topcoder/mfe-header";
77
import _ from "lodash";
88
import { usePreviousLocation } from "./utils/hooks";
@@ -39,33 +39,11 @@ const App = () => {
3939
{menuVisible &&
4040
ReactDOM.createPortal(<Menu />, document.querySelector("#menu-id"))}
4141
<Router>
42-
<Parcel
43-
path="/earn/find/challenges/*"
44-
config={() =>
45-
System.import("@topcoder/micro-frontends-challenges-app")
46-
}
47-
/>
48-
<Parcel
49-
path="/earn/gigs/:externalId/apply"
50-
view="gig-apply"
51-
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
52-
/>
53-
<Parcel
54-
path="/earn/gigs/:externalId"
55-
view="gig-details"
56-
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
57-
/>
58-
<Parcel
59-
path="/earn/gigs"
60-
view="gigs"
61-
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
62-
/>
6342
<Parcel
6443
path="/earn/my-gigs"
6544
view="my-gigs"
6645
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
6746
/>
68-
<Redirect from="/earn/*" to="/earn/find/challenges/" noThrow />
6947
</Router>
7048
</>
7149
);

src/constants/index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,5 @@ export const NAV_MENU = {
1313
},
1414
],
1515
},
16-
{
17-
name: "Find Work",
18-
icon: "find-work.svg",
19-
iconActive: "find-work-green.svg",
20-
children: [
21-
{
22-
name: "Gigs",
23-
path: "/earn/gigs",
24-
},
25-
{
26-
name: "Challenges",
27-
path: "/earn/find/challenges",
28-
},
29-
],
30-
},
3116
],
3217
};

0 commit comments

Comments
 (0)