@@ -221,6 +221,10 @@ ChallengeListing.defaultProps = {
};
ChallengeListing.propTypes = {
+ location: PT.shape({
+ search: PT.string,
+ }).isRequired,
+ history: PT.shape().isRequired,
activeBucket: PT.string.isRequired,
expanding: PT.bool,
challenges: PT.arrayOf(PT.shape()).isRequired,
diff --git a/src/shared/components/challenge-listing/style.scss b/src/shared/components/challenge-listing/style.scss
index a8b290e569..518bc5e05e 100644
--- a/src/shared/components/challenge-listing/style.scss
+++ b/src/shared/components/challenge-listing/style.scss
@@ -22,32 +22,6 @@ $challenge-radius-4: $corner-radius * 2;
flex: 1;
margin: 0;
- .tc-title {
- @include barlow-condensed;
-
- color: $tco-black;
- font-size: 32px;
- margin: 32px 0 24px 0;
- line-height: 32px;
- font-weight: 600;
- text-transform: uppercase;
-
- @include xs-to-md {
- margin: 16px;
- }
- }
-
- .tc-seperator {
- background-color: $listing-gray;
- height: 2px;
- opacity: 0.5;
- margin: 0;
-
- @include xs-to-md {
- margin: 0 16px;
- }
- }
-
.tc-content-wrapper {
display: flex;
padding: 0;
diff --git a/src/shared/containers/GigsPages.jsx b/src/shared/containers/GigsPages/index.jsx
similarity index 91%
rename from src/shared/containers/GigsPages.jsx
rename to src/shared/containers/GigsPages/index.jsx
index f44cd68bc4..757d3167e9 100644
--- a/src/shared/containers/GigsPages.jsx
+++ b/src/shared/containers/GigsPages/index.jsx
@@ -16,8 +16,11 @@ import _ from 'lodash';
import { v4 as uuidv4 } from 'uuid';
import { getQuery } from 'utils/url';
import ReferralCode from 'components/Gigs/ReferralCode';
+import ChallengeTab from 'components/challenge-listing/ChallengeTab';
import actions from 'actions/growSurf';
+import './style.scss';
+
const optimizelyClient = createInstance({
sdkKey: config.OPTIMIZELY.SDK_KEY,
});
@@ -27,7 +30,13 @@ const GIGS_SOCIAL_SHARE_IMAGE = 'https://images.ctfassets.net/b5f1djy59z3a/4XlYN
function GigsPagesContainer(props) {
const {
- match, profile, growSurf, getReferralId, tokenV3,
+ match,
+ profile,
+ growSurf,
+ getReferralId,
+ tokenV3,
+ history,
+ location,
} = props;
const optProfile = {
attributes: {},
@@ -89,6 +98,12 @@ window._chatlio = window._chatlio||[];
image={GIGS_SOCIAL_SHARE_IMAGE}
/>
+
+
+
{
id ? (
{banner}
import(/* webpackChunkName: "gigsPages/chunk" */ 'containers/GigsPages')
+ renderClientAsync={renderProps => import(/* webpackChunkName: "gigsPages/chunk" */ 'containers/GigsPages')
.then(({ default: GigsPagesContainer }) => (
-
+
))
}
renderPlaceholder={() => }
- renderServer={() => {
+ renderServer={(renderProps) => {
const p = webpack.resolveWeak('containers/GigsPages');
const GigsPagesContainer = webpack.requireWeak(path.resolve(__dirname, p));
- return ;
+ return ;
}}
/>
);
diff --git a/src/shared/routes/index.jsx b/src/shared/routes/index.jsx
index a723bae367..9f76f31b68 100644
--- a/src/shared/routes/index.jsx
+++ b/src/shared/routes/index.jsx
@@ -107,7 +107,7 @@ function Routes({ communityId }) {