@@ -13,6 +13,7 @@ import { connect } from 'react-redux';
13
13
import Error404 from 'components/Error404' ;
14
14
import FAQ from 'components/tc-communities/communities/zurich/FAQ' ;
15
15
import Footer from 'components/tc-communities/communities/zurich/Footer' ;
16
+ import Header from 'containers/tc-communities/Header' ;
16
17
import Home from 'containers/tc-communities/zurich/Home' ;
17
18
import Learn from 'components/tc-communities/communities/zurich/Learn' ;
18
19
import ContentfulRoute from 'components/Contentful/Route' ;
@@ -21,8 +22,8 @@ import React from 'react';
21
22
import theme from 'components/tc-communities/communities/zurich/theme' ;
22
23
import { ThemeProvider } from 'react-css-super-themr' ;
23
24
import { Route , Switch , Redirect } from 'react-router-dom' ;
25
+ import { config } from 'topcoder-react-utils' ;
24
26
import Viewport from 'components/Contentful/Viewport' ;
25
- import ContentfulMenu from 'components/Contentful/Menu' ;
26
27
27
28
function Zurich ( { base, meta, userGroups } ) {
28
29
// Only members of `Requestor`|`Approver` gropus
@@ -64,19 +65,15 @@ function Zurich({ base, meta, userGroups }) {
64
65
path = { `${ base } /forbidden` }
65
66
/>
66
67
< Route
67
- component = { ( ) => (
68
+ component = { ( { match } ) => (
68
69
< ThemeProvider theme = { theme } >
69
70
< div >
70
- {
71
- meta . menuItems ? (
72
- < ContentfulMenu
73
- id = { meta . menuItems [ 0 ] . navigationMenu }
74
- spaceName = { meta . menuItems [ 0 ] . spaceName }
75
- environment = { meta . menuItems [ 0 ] . environment }
76
- baseUrl = { base }
77
- />
78
- ) : null
79
- }
71
+ < Header
72
+ baseUrl = { base }
73
+ pageId = { match . params . pageId || 'home' }
74
+ hideJoinNow
75
+ logoutRedirect = { config . URL . COMMUNITIES . ZURICH }
76
+ />
80
77
< Switch >
81
78
< Route
82
79
component = { ( ) => ChallengeListing ( {
0 commit comments