Skip to content

Commit b6b61fc

Browse files
committed
[PAY-3985] More misc first weekly challenge UI fixes
1 parent 09c6315 commit b6b61fc

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

packages/common/src/utils/challenges.ts

+1
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ export const getClaimableChallengeSpecifiers = (
380380

381381
const newChallengeIds: ChallengeRewardID[] = [
382382
ChallengeName.ListenStreakEndless,
383+
ChallengeName.FirstWeeklyComment,
383384
ChallengeName.AudioMatchingSell,
384385
ChallengeName.AudioMatchingBuy
385386
]

packages/mobile/src/components/challenge-rewards-drawer/ClaimError.tsx

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { getAAOErrorEmojis } from '@audius/common/utils'
22

3-
import { Text } from 'app/components/core'
4-
5-
import { useStyles } from './styles'
3+
import { Text } from '@audius/harmony-native'
64

75
const messages = {
86
claimErrorMessage:
@@ -13,13 +11,10 @@ const messages = {
1311

1412
/** Renders a generic error message for failed challenge claims */
1513
export const ClaimError = ({ aaoErrorCode }: { aaoErrorCode?: number }) => {
16-
const styles = useStyles()
1714
return aaoErrorCode === undefined ? (
18-
<Text style={styles.claimRewardsError} weight='bold'>
19-
{messages.claimErrorMessage}
20-
</Text>
15+
<Text>{messages.claimErrorMessage}</Text>
2116
) : (
22-
<Text style={styles.claimRewardsError} weight='bold'>
17+
<Text>
2318
{messages.claimErrorMessageAAO}
2419
{getAAOErrorEmojis(aaoErrorCode)}
2520
</Text>

packages/web/src/pages/rewards-page/components/modals/ChallengeRewardsModal/ClaimButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { claimChallengeReward } = audioRewardsPageActions
1313

1414
const messages = {
1515
close: 'Close',
16-
claimableAmountLabel: (amount: number) => `Claim $${amount} $AUDIO`
16+
claimableAmountLabel: (amount: number) => `Claim ${amount} $AUDIO`
1717
}
1818

1919
type ClaimButtonProps = {

0 commit comments

Comments
 (0)