Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: tds stage finished soon -> finished (fixes #565)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Dec 23, 2019
1 parent 0f3a8fc commit 07a6fde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/v2/components/TourDeSol/Stage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ const Stage = ({className, activeClass, stage, activeStage}: StageProps) => {
const stageDateStart = stage.isTbd
? 'SOON'
: format(new Date(stage.startDate), 'P');
const stageDateEnd = stage.isTbd
? 'SOON'
: format(new Date(stage.endDate), 'P');
const stageDateEnd = stage.isTbd ? '' : format(new Date(stage.endDate), 'P');

return (
<li className={cn(className, isActive && activeClass)}>
<div>
{stage.title} {isActive && '(LIVE!)'}
{isActive && <img src={iconRight} width={47} height={13} alt="" />}
<br />
{isFinished && <span>(finished {stageDateEnd})</span>}
{isFinished && (
<span>(finished{stageDateEnd && ' ' + stageDateEnd})</span>
)}
{!isActive && !isFinished && <span>(coming {stageDateStart})</span>}
</div>
</li>
Expand Down

0 comments on commit 07a6fde

Please sign in to comment.