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

Commit 71ca6d6

Browse files
committed
CORE-287 remove routes and menu items
1 parent f36b42f commit 71ca6d6

File tree

2 files changed

+2
-45
lines changed

2 files changed

+2
-45
lines changed

src/App.jsx

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/**
22
* Main App component
33
*/
4-
import React, { useLayoutEffect, useEffect, useRef } from "react";
5-
import { Router, useLocation, Redirect } from "@reach/router";
6-
import { disableSidebarForRoute } from "@topcoder/mfe-header";
4+
import React, { useEffect, useRef } from "react";
5+
import { Router, useLocation } from "@reach/router";
76
import _ from "lodash";
87
import { usePreviousLocation } from "./utils/hooks";
98
import Parcel from "single-spa-react/parcel";
@@ -17,11 +16,6 @@ import Menu from "./containers/Menu";
1716
const App = () => {
1817
const menuVisible = useSelector((state) => state.menu.show);
1918

20-
useLayoutEffect(() => {
21-
disableSidebarForRoute("/earn/*");
22-
document.title = "Listings-EARN-Topcoder";
23-
}, []);
24-
2519
const location = useLocation();
2620
const previousLocation = usePreviousLocation();
2721

@@ -39,33 +33,11 @@ const App = () => {
3933
{menuVisible &&
4034
ReactDOM.createPortal(<Menu />, document.querySelector("#menu-id"))}
4135
<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-
/>
6336
<Parcel
6437
path="/earn/my-gigs"
6538
view="my-gigs"
6639
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
6740
/>
68-
<Redirect from="/earn/*" to="/earn/find/challenges/" noThrow />
6941
</Router>
7042
</>
7143
);

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)