Skip to content

Commit

Permalink
chore: update points disclaimer copy (#5822)
Browse files Browse the repository at this point in the history
### Description

Designs
[here](https://www.figma.com/design/rXBDplfMHHqYmuu6EkgMEo/Valora-Points?node-id=2124-11902&t=8SdX4wAwRvZrQeQs-0).

### Test plan

n/a

### Related issues

n/a

### Backwards compatibility

Y

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [ ] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)

Co-authored-by: Alex Bakoushin <alex@bakoush.in>
  • Loading branch information
kathaypacific and bakoushin authored Aug 22, 2024
1 parent c225924 commit dcbd86e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion locales/base/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,8 @@
},
"disclaimer": {
"learnMoreCta": "<0>Learn more</0> about {{appName}} Points",
"body": "<0>What are Points?</0>\nPoints are {{appName}}'s loyalty program. They're awarded to users when you use our app.\n\n<0>What are they good for?</0>\nYou collect them. They can’t be spent or traded or transferred.\n\n<0>Why are they in my wallet?</0>\nBecause they’re tokens. On chain, digital bits of happiness you earn by using the app.",
"title": "More About {{appName}} Points",
"body": "Points are {{appName}}'s loyalty program. They're awarded for using the app. Points can't be spent, traded, or transferred.",
"dismiss": "Got it"
}
},
Expand Down
13 changes: 7 additions & 6 deletions src/points/PointsHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,13 @@ export default function PointsHome({ route, navigation }: Props) {
</>
)}
</BottomSheet>
<BottomSheet forwardedRef={disclaimerBottomSheetRef} testId={`DisclaimerBottomSheet`}>
<Text style={typeScale.bodySmall}>
<Trans i18nKey="points.disclaimer.body">
<Text style={typeScale.labelSmall} />
</Trans>
</Text>
<BottomSheet
title={t('points.disclaimer.title')}
titleStyle={typeScale.labelSemiBoldMedium}
forwardedRef={disclaimerBottomSheetRef}
testId={`DisclaimerBottomSheet`}
>
<Text style={typeScale.bodySmall}>{t('points.disclaimer.body')}</Text>
<Button
type={BtnTypes.SECONDARY}
size={BtnSizes.FULL}
Expand Down

0 comments on commit dcbd86e

Please sign in to comment.