Skip to content

Commit

Permalink
chore: add points section to disclaimer (#5564)
Browse files Browse the repository at this point in the history
### Description

Add a new base transition that includes points in the Valora terms
disclaimer if the feature gate is enabled.

### Test plan

N/A

### Related issues

- Fixes ACT-1213

### Backwards compatibility

Yes

### Network scalability

N/A
  • Loading branch information
MuckT authored Jun 25, 2024
1 parent 6d3e992 commit bd10966
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion locales/base/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@
"heading2": "Digital Assets and {{appName}}",
"info": "In order to use our services, please read and accept our <0>User Agreement and Terms</0> by clicking the accept button below.",
"privacy": "By joining this network, you give us permission to collect anonymous information about your use of the app. Additionally, if you connect your phone number, a hashed copy of it will be stored. If you grant Valora access to your contact list, Valora will import each contact's name, phone number and profile picture to allow users to connect through the Valora app. To learn how we collect and use this information please review our <0>Privacy Policy</0>.",
"goldDisclaimer": "When you create an \"account\" with Valora you are creating a digital wallet to which only you hold the keys. No other person or entity, including Valora, can recover your key, change or undo transactions, or recover lost funds. Be aware that digital assets are part of a new asset class and present a risk of financial loss. Carefully consider your financial circumstances and tolerance for financial risk before purchasing any digital asset."
"goldDisclaimer": "When you create an \"account\" with Valora you are creating a digital wallet to which only you hold the keys. No other person or entity, including Valora, can recover your key, change or undo transactions, or recover lost funds. Be aware that digital assets are part of a new asset class and present a risk of financial loss. Carefully consider your financial circumstances and tolerance for financial risk before purchasing any digital asset.",
"goldDisclaimerWithPoints": "When you create an \"account\" with Valora you are creating a digital wallet to which only you hold the keys. No other person or entity, including Valora, can recover your key, change or undo transactions, or recover lost funds. Valora grants tokenized loyalty rewards (\"Points\") to Users for engaging in certain in-app activities. Points are on-chain, non-transferable, and non-redeemable collectibles. No guarantees are made about Points availability or value. Be aware that digital assets are part of a new asset class and present a risk of financial loss. Carefully consider your financial circumstances and tolerance for financial risk before purchasing any digital asset."
},
"termsColloquial": {
"title": "Let’s start by creating your wallet",
Expand Down
9 changes: 6 additions & 3 deletions src/onboarding/registration/RegulatoryTerms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import { navigate } from 'src/navigator/NavigationService'
import { Screens } from 'src/navigator/Screens'
import { firstOnboardingScreen } from 'src/onboarding/steps'
import { RootState } from 'src/redux/reducers'
import { getExperimentParams } from 'src/statsig'
import { getExperimentParams, getFeatureGate } from 'src/statsig'
import { ExperimentConfigs } from 'src/statsig/constants'
import { StatsigExperiments } from 'src/statsig/types'
import { StatsigExperiments, StatsigFeatureGates } from 'src/statsig/types'
import Colors from 'src/styles/colors'
import fontStyles, { typeScale } from 'src/styles/fonts'
import { Spacing } from 'src/styles/styles'
Expand Down Expand Up @@ -77,6 +77,7 @@ export class RegulatoryTerms extends React.Component<Props> {

renderTerms() {
const { t } = this.props
const pointsEnabled = getFeatureGate(StatsigFeatureGates.SHOW_POINTS)

return (
<ScrollView
Expand All @@ -98,7 +99,9 @@ export class RegulatoryTerms extends React.Component<Props> {
</Trans>
</Text>
<Text style={styles.header}>{t('terms.heading2')}</Text>
<Text style={styles.disclaimer}>{t('terms.goldDisclaimer')}</Text>
<Text style={styles.disclaimer}>
{pointsEnabled ? t('terms.goldDisclaimerWithPoints') : t('terms.goldDisclaimer')}
</Text>
</ScrollView>
)
}
Expand Down

0 comments on commit bd10966

Please sign in to comment.