File tree 2 files changed +21
-5
lines changed
src/shared/routes/Communities/Cognitive
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,33 @@ import { Route, Switch } from 'react-router-dom';
19
19
20
20
import headerTheme from 'components/tc-communities/communities/cognitive/header.scss';
21
21
22
+ import style from './style.scss';
23
+
22
24
export default function Cognitive({ base, member, meta }) {
23
25
return (
24
26
<Route
25
27
component={({ match }) => (
26
28
<div>
29
+ <div className={style.back} />
27
30
<Header
28
31
baseUrl={base}
29
32
pageId={match.params.pageId || 'home'}
30
33
theme={headerTheme}
31
34
/>
32
35
<Switch>
33
36
<Route
34
- component={() => (<div>{ChallengeListing({
35
- challengesUrl: `${base}/challenges`,
36
- meta,
37
- newChallengeDetails: true,
38
- })}</div>)}
37
+ component={() => (
38
+ <div>
39
+ {
40
+ ChallengeListing({
41
+ challengesUrl: `${base}/challenges`,
42
+ meta,
43
+ listingOnly: true,
44
+ newChallengeDetails: true,
45
+ })
46
+ }
47
+ </div>
48
+ )}
39
49
exact
40
50
path={`${base}/challenges`}
41
51
/>
Original file line number Diff line number Diff line change
1
+ .back {
2
+ background: gray;
3
+ width: 100%;
4
+ height: 70px;
5
+ position: absolute;
6
+ }
You can’t perform that action at this time.
0 commit comments