Skip to content

Commit 30c46d2

Browse files
committed
Update airdrop copy and add X icon (#11306)
1 parent 875a467 commit 30c46d2

File tree

10 files changed

+34
-8
lines changed

10 files changed

+34
-8
lines changed

.changeset/rich-peaches-rhyme.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@audius/harmony": minor
3+
---
4+
5+
Add X icon

packages/common/src/utils/challenges.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { formatNumberCommas } from './formatUtil'
1111

1212
export type ChallengeRewardsInfo = {
1313
id: ChallengeRewardID
14+
shortTitle?: string
1415
title: string
1516
description: (amount: OptimisticUserChallenge | undefined) => string
1617
fullDescription?: (amount: OptimisticUserChallenge | undefined) => string
@@ -307,9 +308,13 @@ export const challengeRewardsConfig: Record<
307308
id: 'trending-underground'
308309
},
309310
o: {
310-
title: 'Airdrop - Februrary 2025',
311-
description: () => 'Claim your $AUDIO before it expires!',
312-
fullDescription: () => 'Claim your $AUDIO before it expires!',
311+
shortTitle: 'Airdrop 2: Artists',
312+
title: 'Airdrop 2: Artist Appreciationdfa',
313+
description: () =>
314+
`We're thrilled to reward our talented artist community for driving Audius' growth and success!`,
315+
fullDescription: () =>
316+
`We're thrilled to reward our talented artist community for driving Audius' growth and success! \n\nClaim your tokens before they expire on 05/13/25!`,
317+
313318
panelButtonText: '',
314319
id: ChallengeName.OneShot,
315320
remainingLabel: 'Ineligible',

packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/challengeReward.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class ChallengeReward extends BaseNotification<ChallengeRewardRow> {
6868
amount: 2
6969
},
7070
o: {
71-
title: 'Airdrop - February 2025'
71+
title: 'Airdrop 2: Artist Appreciation'
7272
}
7373
}
7474

+5
Loading

packages/harmony/src/icons/Logos.stories.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Logos are used as a visual representation of our brand and other businesses we p
7373
<IconFacebook />
7474
<IconInstagram />
7575
<IconTwitter />
76+
<IconX />
7677
<IconTelegram />
7778
<IconSnapChat />
7879
<IconTikTok />

packages/harmony/src/icons/logos.ts

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import IconSnapChatSVG from '../assets/icons/SnapChat.svg'
2929
import IconTelegramSVG from '../assets/icons/Telegram.svg'
3030
import IconTikTokSVG from '../assets/icons/TikTok.svg'
3131
import IconTwitterSVG from '../assets/icons/Twitter.svg'
32+
import IconXSVG from '../assets/icons/X.svg'
3233
import { createImageIcon } from '../utils/createImageIcon'
3334

3435
export const IconAudiusLogo = IconAudiusLogoSVG as IconComponent
@@ -64,3 +65,4 @@ export const IconSnapChat = IconSnapChatSVG as IconComponent
6465
export const IconTelegram = IconTelegramSVG as IconComponent
6566
export const IconTikTok = IconTikTokSVG as IconComponent
6667
export const IconTwitter = IconTwitterSVG as IconComponent
68+
export const IconX = IconXSVG as IconComponent

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const ChallengeRewardsDrawerProvider = () => {
208208
onClose={handleClose}
209209
isFullscreen
210210
isGestureSupported={false}
211-
title={config.title}
211+
title={config.shortTitle ?? config.title}
212212
>
213213
{isAudioMatchingChallenge(modalType) ? (
214214
<AudioMatchingChallengeDrawerContent
@@ -232,7 +232,11 @@ export const ChallengeRewardsDrawerProvider = () => {
232232
/>
233233
) : (
234234
<ChallengeRewardsDrawerContent
235-
description={config.description(challenge)}
235+
description={
236+
config.fullDescription
237+
? config.fullDescription(challenge)
238+
: config.description(challenge)
239+
}
236240
progressLabel={config.progressLabel ?? 'Completed'}
237241
completedLabel={config.completedLabel}
238242
amount={progressRewardAmount}

packages/mobile/src/screens/rewards-screen/Panel.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type PanelProps = {
3333
export const Panel = ({
3434
id,
3535
onPress,
36+
shortTitle,
3637
title,
3738
shortDescription,
3839
description,
@@ -94,7 +95,7 @@ export const Panel = ({
9495
</Flex>
9596
<Flex ph='unit5' gap='s'>
9697
<Text variant='heading' size='s'>
97-
{title}
98+
{shortTitle ?? title}
9899
</Text>
99100
<Text numberOfLines={2}>
100101
{shortDescription || description(challenge)}

packages/mobile/src/utils/challenges.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export type ChallengesParamList = {
6060

6161
export type MobileChallengeConfig = {
6262
icon?: ImageSourcePropType
63+
shortTitle?: string
6364
title?: string
6465
description?: (amount?: OptimisticUserChallenge) => string
6566
shortDescription?: string

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ const ChallengeRewardsBody = ({ dismissModal }: BodyProps) => {
340340
{messages.verifiedChallenge}
341341
</div>
342342
) : null}
343-
<Text variant='body'>{fullDescription?.(challenge)}</Text>
343+
<Text variant='body' style={{ whiteSpace: 'pre-line' }}>
344+
{fullDescription?.(challenge)}
345+
</Text>
344346
{isCooldownChallenge ? (
345347
<Text variant='body' color='subdued'>
346348
{messages.cooldownDescription}

0 commit comments

Comments
 (0)