-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5704 from topcoder-platform/gig-referrals-hotfix
Gig referrals hotfix
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,10 @@ function ReferralCode(props) { | |
<React.Fragment> | ||
<span>Your referral link:</span> | ||
{ | ||
growSurfState.data ? ( | ||
growSurfState.loading && <LoadingIndicator /> | ||
} | ||
{ | ||
growSurfState.data && ( | ||
<div className={defautlStyle.rondedArea}> | ||
<span>{`https://www.topcoder.com/gigs?referralId=${growSurfState.data.id}`}</span> | ||
<PrimaryButton | ||
|
@@ -92,7 +95,10 @@ function ReferralCode(props) { | |
{copyBtnText} | ||
</PrimaryButton> | ||
</div> | ||
) : <LoadingIndicator /> | ||
) | ||
} | ||
{ | ||
growSurfState.error && <span>Ops, we couldn't load your profile. Please try again later or contact <a href="mailto:[email protected]">support</a>.</span> | ||
} | ||
</React.Fragment> | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters