Skip to content

Commit 584ad87

Browse files
committed
fix: change <time> to register to <time> to go
1 parent 8514b0a commit 584ad87

File tree

3 files changed

+5
-5
lines changed
  • __tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__
  • src/shared/components
    • challenge-detail/RecommendedActiveChallenges/ChallengesCard
    • challenge-listing/ChallengeCard/Status

3 files changed

+5
-5
lines changed

__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/Status.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ exports[`Matches shallow shapshot shapshot 1 1`] = `
128128
<span
129129
className="src-shared-components-challenge-listing-ChallengeCard-Status-___style__to-register___17rpT"
130130
>
131-
to register
131+
to go
132132
</span>
133133
</a>
134134
</div>

src/shared/components/challenge-detail/RecommendedActiveChallenges/ChallengesCard/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default function ChallengesCard({
106106
</div>
107107

108108
<div styleName="bottom">
109-
<span>{getTimeLeft(statusPhase, 'to register').text}</span>
109+
<span>{getTimeLeft(statusPhase, 'to go').text}</span>
110110
</div>
111111
</div>
112112
);

src/shared/components/challenge-listing/ChallengeCard/Status/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default function ChallengeStatus(props) {
130130
challenge,
131131
detailLink,
132132
} = props;
133-
const timeDiff = getTimeLeft((challenge.allPhases || challenge.phases || []).find(p => p.name === 'Registration'), 'to register');
133+
const timeDiff = getTimeLeft((challenge.allPhases || challenge.phases || []).find(p => p.name === 'Registration'), 'to go');
134134
let timeNote = timeDiff.text;
135135
/* TODO: This is goofy, makes the trick, but should be improved. The idea
136136
* here is that the standard "getTimeLeft" method, for positive times,
@@ -150,7 +150,7 @@ export default function ChallengeStatus(props) {
150150
{timeNote}
151151
</span>
152152
<span styleName="to-register">
153-
to register
153+
to go
154154
</span>
155155
</a>
156156
);
@@ -278,7 +278,7 @@ export default function ChallengeStatus(props) {
278278
isLate={moment().isAfter(statusPhase.scheduledEndDate)}
279279
/>
280280
<div styleName="time-left">
281-
{getTimeLeft(statusPhase, 'to register').text}
281+
{getTimeLeft(statusPhase, 'to go').text}
282282
</div>
283283
</div>
284284
) : <ChallengeProgressBar color="gray" value="100" />

0 commit comments

Comments
 (0)