Skip to content

Implement #4847 #4848 #4878

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
Sep 9, 2020
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,5 @@ module.exports = {
TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP: 3,
POLICY_PAGES_PATH: '/policy',
GIGS_PAGES_PATH: '/gigs',
START_PAGE_PATH: '/start',
};
21 changes: 21 additions & 0 deletions src/shared/routes/StartPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* The loader of Gigs page webpack chunks.
*/
import React from 'react';

import LoadingPagePlaceholder from 'components/LoadingPagePlaceholder';
import { AppChunk } from 'topcoder-react-utils';

export default function GigsPagesRoute(props) {
return (
<AppChunk
chunkName="policyPages/chunk"
renderClientAsync={() => import(/* webpackChunkName: "gigsPages/chunk" */ 'containers/GigsPages')
.then(({ default: GigsPagesContainer }) => (
<GigsPagesContainer {...props} />
))
}
renderPlaceholder={() => <LoadingPagePlaceholder />}
/>
);
}
11 changes: 11 additions & 0 deletions src/shared/routes/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

import CommunityLoader from 'containers/tc-communities/Loader';
import ContentfulRoute from 'components/Contentful/Route';
import Content from 'components/Content';
import React from 'react';

Expand Down Expand Up @@ -103,6 +104,16 @@ function Routes({ communityId }) {
exact
path={`${config.GIGS_PAGES_PATH}/:id?`}
/>
<Route
render={() => (
<ContentfulRoute
baseUrl={config.START_PAGE_PATH}
id="vpcfRkUPoTtxXoEIBvCRl"
/>
)}
exact
path={config.START_PAGE_PATH}
/>
<Topcoder />
</Switch>
</div>
Expand Down