Skip to content

Commit eefcbb7

Browse files
Merge pull request #5690 from topcoder-platform/slash-gigs-updates
Slash gigs updates
2 parents d8ec57a + d00bc1f commit eefcbb7

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ workflows:
356356
filters:
357357
branches:
358358
only:
359-
- thrive-sep-update1
359+
- free
360360
# This is beta env for production soft releases
361361
- "build-prod-beta":
362362
context : org-global

src/shared/components/Gigs/ReferralCode/index.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ function ReferralCode(props) {
3030

3131
return (
3232
<div className={_.isEmpty(profile) ? defautlStyle.container : defautlStyle.containerWithLink}>
33-
<span className={defautlStyle.title}>Topcoder Referral Program:</span>
33+
{
34+
_.isEmpty(profile) ? (
35+
<span className={defautlStyle.title}>Topcoder Referral Program:</span>
36+
) : (
37+
<a className={defautlStyle.title} href="/community/gig-referral" target="_blank" rel="noreferrer">Topcoder Referral Program:</a>
38+
)
39+
}
3440
{
3541
_.isEmpty(profile) ? (
3642
<React.Fragment>

src/shared/components/Gigs/ReferralCode/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
.title {
2323
font-weight: bold;
24+
color: #fff;
25+
font-family: Roboto, sans-serif;
26+
font-size: 18px;
27+
margin-right: 5px;
2428

2529
@media screen and (max-width: 768px) {
2630
margin-bottom: 10px;

src/shared/containers/GigsPages.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function GigsPagesContainer(props) {
3737
optProfile.attributes.email = profile.email;
3838
// trigger referral id fetching when profile is loaded
3939
if (isomorphy.isClientSide()) {
40-
if (_.isEmpty(growSurf) || (!growSurf.loading && !growSurf.data)) {
40+
if (_.isEmpty(growSurf) || (!growSurf.loading && !growSurf.data && !growSurf.error)) {
4141
getReferralId(profile);
4242
}
4343
}
@@ -67,7 +67,7 @@ function GigsPagesContainer(props) {
6767
}
6868
const { id, type } = match.params;
6969
const isApply = `${config.GIGS_PAGES_PATH}/${id}/apply` === match.url;
70-
const title = 'Gig Work | Topcoder Community | Topcoder';
70+
const title = 'Find Freelance Work | Gigs | Topcoder';
7171
const description = 'Compete and build up your profiles and skills! Topcoder members become eligible to work on Gig Work projects by first proving themselves in various skill sets through Topcoder competitions.';
7272
const inner = (
7373
<div>

0 commit comments

Comments
 (0)