File tree 3 files changed +33
-0
lines changed
3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -409,4 +409,5 @@ module.exports = {
409
409
TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP : 3 ,
410
410
POLICY_PAGES_PATH : '/policy' ,
411
411
GIGS_PAGES_PATH : '/gigs' ,
412
+ START_PAGE_PATH : '/start' ,
412
413
} ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * The loader of Gigs page webpack chunks.
3
+ */
4
+ import React from 'react' ;
5
+
6
+ import LoadingPagePlaceholder from 'components/LoadingPagePlaceholder' ;
7
+ import { AppChunk } from 'topcoder-react-utils' ;
8
+
9
+ export default function GigsPagesRoute ( props ) {
10
+ return (
11
+ < AppChunk
12
+ chunkName = "policyPages/chunk"
13
+ renderClientAsync = { ( ) => import ( /* webpackChunkName: "gigsPages/chunk" */ 'containers/GigsPages' )
14
+ . then ( ( { default : GigsPagesContainer } ) => (
15
+ < GigsPagesContainer { ...props } />
16
+ ) )
17
+ }
18
+ renderPlaceholder = { ( ) => < LoadingPagePlaceholder /> }
19
+ />
20
+ ) ;
21
+ }
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import CommunityLoader from 'containers/tc-communities/Loader' ;
6
+ import ContentfulRoute from 'components/Contentful/Route' ;
6
7
import Content from 'components/Content' ;
7
8
import React from 'react' ;
8
9
@@ -103,6 +104,16 @@ function Routes({ communityId }) {
103
104
exact
104
105
path = { `${ config . GIGS_PAGES_PATH } /:id?` }
105
106
/>
107
+ < Route
108
+ render = { ( ) => (
109
+ < ContentfulRoute
110
+ baseUrl = { config . START_PAGE_PATH }
111
+ id = "vpcfRkUPoTtxXoEIBvCRl"
112
+ />
113
+ ) }
114
+ exact
115
+ path = { config . START_PAGE_PATH }
116
+ />
106
117
< Topcoder />
107
118
</ Switch >
108
119
</ div >
You can’t perform that action at this time.
0 commit comments