diff --git a/src/server/tc-communities/zurich/metadata.json b/src/server/tc-communities/zurich/metadata.json index f47cedfe69..ba07aad20a 100644 --- a/src/server/tc-communities/zurich/metadata.json +++ b/src/server/tc-communities/zurich/metadata.json @@ -22,10 +22,28 @@ "url": "https://www.topcoder.com" }], "footerText": "© Copyright Topcoder, 2019", - "menuItems": [{ - "navigationMenu": "2rUBPkaTK3UInCz4h7GOZG", - "spaceName": "zurich" - }], + "menuItems": [ + { + "title": "Home", + "url": "/" + }, { + "title": "How it works", + "url": "/learn" + }, { + "title": "Catalog", + "url": "/catalog" + }, { + "title": "FAQ", + "url": "/faq" + }, { + "title": "Challenges", + "url": "/challenges?communityId=zurich" + }, { + "title": "THRIVE/LEARN", + "url": "https://topcoder.com/thrive", + "openNewTab": true + } + ], "hideSearch": true, "newsFeed": "http://www.topcoder.com/feed", "subdomains": ["zurich", "community-zurich"], diff --git a/src/shared/routes/Communities/Zurich/Routes.jsx b/src/shared/routes/Communities/Zurich/Routes.jsx index 6f60d9abd8..c063041232 100644 --- a/src/shared/routes/Communities/Zurich/Routes.jsx +++ b/src/shared/routes/Communities/Zurich/Routes.jsx @@ -13,6 +13,7 @@ import { connect } from 'react-redux'; import Error404 from 'components/Error404'; import FAQ from 'components/tc-communities/communities/zurich/FAQ'; import Footer from 'components/tc-communities/communities/zurich/Footer'; +import Header from 'containers/tc-communities/Header'; import Home from 'containers/tc-communities/zurich/Home'; import Learn from 'components/tc-communities/communities/zurich/Learn'; import ContentfulRoute from 'components/Contentful/Route'; @@ -21,8 +22,8 @@ import React from 'react'; import theme from 'components/tc-communities/communities/zurich/theme'; import { ThemeProvider } from 'react-css-super-themr'; import { Route, Switch, Redirect } from 'react-router-dom'; +import { config } from 'topcoder-react-utils'; import Viewport from 'components/Contentful/Viewport'; -import ContentfulMenu from 'components/Contentful/Menu'; function Zurich({ base, meta, userGroups }) { // Only members of `Requestor`|`Approver` gropus @@ -64,19 +65,15 @@ function Zurich({ base, meta, userGroups }) { path={`${base}/forbidden`} /> ( + component={({ match }) => (
- { - meta.menuItems ? ( - - ) : null - } +
ChallengeListing({