Skip to content

Commit 6302f22

Browse files
authored
Merge pull request #6997 from topcoder-platform/TOP-2194
TOP-2194 bring back main viewport
2 parents 0d4cfdb + 2f23ed4 commit 6302f22

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/shared/containers/GigsPages/index.jsx

+12-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import React from 'react';
55
import PT from 'prop-types';
66
import Header from 'containers/TopcoderHeader';
77
import Footer from 'components/TopcoderFooter';
8+
import Viewport from 'components/Contentful/Viewport';
89
import { config, isomorphy } from 'topcoder-react-utils';
910
import RecruitCRMJobDetails from 'containers/Gigs/RecruitCRMJobDetails';
1011
import { Helmet } from 'react-helmet';
@@ -64,7 +65,7 @@ function GigsPagesContainer(props) {
6465
}), config.GROWSURF_COOKIE_SETTINGS);
6566
}
6667
}
67-
const { id } = match.params;
68+
const { id, type } = match.params;
6869
const isApply = `${config.GIGS_PAGES_PATH}/${id}/apply` === match.url;
6970
const title = 'Find Freelance Work | Gigs | Topcoder';
7071
const description = 'Compete and build up your profiles and skills! Topcoder members become eligible to work on Gig Work projects by first proving themselves in various skill sets through Topcoder competitions.';
@@ -100,6 +101,16 @@ window._chatlio = window._chatlio||[];
100101
/>
101102
) : null
102103
}
104+
{
105+
!id && !type ? (
106+
<React.Fragment>
107+
<Viewport
108+
id="3X6GfJZl3eDU0m4joSJZpN"
109+
baseUrl={config.GIGS_PAGES_PATH}
110+
/>
111+
</React.Fragment>
112+
) : null
113+
}
103114
<Footer />
104115
</div>
105116
);

0 commit comments

Comments
 (0)