-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
579eaef
commit f19f19e
Showing
6 changed files
with
42 additions
and
16 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
30 changes: 30 additions & 0 deletions
30
packages/mobile/src/components/challenge-rewards-drawer/CooldownSummaryTable.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,30 @@ | ||
import React from 'react' | ||
|
||
import type { ChallengeRewardID } from '@audius/common' | ||
import { useAudioMatchingChallengeCooldownSchedule } from '@audius/common' | ||
|
||
import { SummaryTable } from '../summary-table' | ||
|
||
const messages = { | ||
readyToClaim: 'Ready to Claim!', | ||
upcomingRewards: 'Upcoming Rewards', | ||
audio: '$AUDIO' | ||
} | ||
|
||
export const CooldownSummaryTable = ({ | ||
challengeId | ||
}: { | ||
challengeId: ChallengeRewardID | ||
}) => { | ||
const { cooldownChallenges, cooldownChallengesSummary } = | ||
useAudioMatchingChallengeCooldownSchedule(challengeId) | ||
return ( | ||
<SummaryTable | ||
title={messages.upcomingRewards} | ||
secondaryTitle={messages.audio} | ||
summaryValueColor='neutral' | ||
items={cooldownChallenges} | ||
summaryItem={cooldownChallengesSummary} | ||
/> | ||
) | ||
} |
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