-
Notifications
You must be signed in to change notification settings - Fork 65
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 #2339 from DistributedCollective/development
Release 2022-07-15
- Loading branch information
Showing
19 changed files
with
371 additions
and
58 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
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
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
37 changes: 37 additions & 0 deletions
37
...ges/PerpetualPage/components/CompetitionPage/components/CompetitionEndCountdown/index.tsx
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { translations } from 'locales/i18n'; | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
type CompetitionEndCountdownProps = { | ||
days: number; | ||
hours: number; | ||
minutes: number; | ||
seconds: number; | ||
}; | ||
|
||
export const CompetitionEndCountdown: React.FC<CompetitionEndCountdownProps> = ({ | ||
days, | ||
hours, | ||
minutes, | ||
seconds, | ||
}) => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<div className="tw-flex tw-items-center"> | ||
<span className="tw-font-bold tw-mr-2"> | ||
{t(translations.competitionPage.countdown.label)} | ||
</span> | ||
{days} {t(translations.competitionPage.countdown.days)} | ||
<Divider /> | ||
{hours} {t(translations.competitionPage.countdown.hours)} | ||
<Divider /> | ||
{minutes} {t(translations.competitionPage.countdown.minutes)} | ||
<Divider /> | ||
{seconds} {t(translations.competitionPage.countdown.seconds)} | ||
</div> | ||
); | ||
}; | ||
|
||
const Divider = () => ( | ||
<span className="tw-box-border tw-inline-block tw-h-4 tw-border-r tw-border-solid tw-border-gray-7 tw-mx-2" /> | ||
); |
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
Oops, something went wrong.