Skip to content

TOP-2194 bring back main viewport #6997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/shared/containers/GigsPages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
import PT from 'prop-types';
import Header from 'containers/TopcoderHeader';
import Footer from 'components/TopcoderFooter';
import Viewport from 'components/Contentful/Viewport';
import { config, isomorphy } from 'topcoder-react-utils';
import RecruitCRMJobDetails from 'containers/Gigs/RecruitCRMJobDetails';
import { Helmet } from 'react-helmet';
Expand Down Expand Up @@ -64,7 +65,7 @@ function GigsPagesContainer(props) {
}), config.GROWSURF_COOKIE_SETTINGS);
}
}
const { id } = match.params;
const { id, type } = match.params;
const isApply = `${config.GIGS_PAGES_PATH}/${id}/apply` === match.url;
const title = 'Find Freelance Work | Gigs | Topcoder';
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.';
Expand Down Expand Up @@ -100,6 +101,16 @@ window._chatlio = window._chatlio||[];
/>
) : null
}
{
!id && !type ? (
<React.Fragment>
<Viewport
id="3X6GfJZl3eDU0m4joSJZpN"
baseUrl={config.GIGS_PAGES_PATH}
/>
</React.Fragment>
) : null
}
<Footer />
</div>
);
Expand Down
Loading