Skip to content

Commit e402a9c

Browse files
committed
A rapid fix of problem with transparent header on Cognitive's Compete page
1 parent 32f9aec commit e402a9c

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

src/shared/routes/Communities/Cognitive/Routes.jsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,33 @@ import { Route, Switch } from 'react-router-dom';
1919

2020
import headerTheme from 'components/tc-communities/communities/cognitive/header.scss';
2121

22+
import style from './style.scss';
23+
2224
export default function Cognitive({ base, member, meta }) {
2325
return (
2426
<Route
2527
component={({ match }) => (
2628
<div>
29+
<div className={style.back} />
2730
<Header
2831
baseUrl={base}
2932
pageId={match.params.pageId || 'home'}
3033
theme={headerTheme}
3134
/>
3235
<Switch>
3336
<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+
)}
3949
exact
4050
path={`${base}/challenges`}
4151
/>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.back {
2+
background: gray;
3+
width: 100%;
4+
height: 70px;
5+
position: absolute;
6+
}

0 commit comments

Comments
 (0)