Skip to content

Commit

Permalink
BUG PM-641: The user creates a new account and the interface does not…
Browse files Browse the repository at this point in the history
… ask to accept terms and conditions (#395)

* Add ToS, PP and RDP PM-641

* Small markup fix PM-641
  • Loading branch information
mmv08 authored Jun 6, 2018
1 parent 59baddb commit 3349915
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
6 changes: 3 additions & 3 deletions config/environments/olympia/development/interface.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"type": "default"
},
"termsOfUse": {
"url": "/TermsOfService.html"
"url": "/assets/content/TermsOfService.html"
},
"riskDisclaimer": {
"url": "/RiskDisclaimerPolicy.html"
"url": "/assets/content/RiskDisclaimerPolicy.html"
},
"privacyPolicy": {
"url": "/PrivacyPolicy.html"
"url": "/assets/content/PrivacyPolicy.html"
},
"footer": {
"enabled": true,
Expand Down
8 changes: 7 additions & 1 deletion config/environments/olympia/production/interface.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@
"type": "default"
},
"termsOfUse": {
"url": null
"url": "/assets/content/TermsOfService.html"
},
"riskDisclaimer": {
"url": "/assets/content/RiskDisclaimerPolicy.html"
},
"privacyPolicy": {
"url": "/assets/content/PrivacyPolicy.html"
},
"footer": {
"enabled": true,
Expand Down
8 changes: 7 additions & 1 deletion config/environments/olympia/staging/interface.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@
"type": "default"
},
"termsOfUse": {
"url": null
"url": "/assets/content/TermsOfService.html"
},
"riskDisclaimer": {
"url": "/assets/content/RiskDisclaimerPolicy.html"
},
"privacyPolicy": {
"url": "/assets/content/PrivacyPolicy.html"
},
"footer": {
"enabled": true,
Expand Down
12 changes: 6 additions & 6 deletions src/components/ModalContent/RegisterWallet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ const RegisterMainnetAddress = ({
</a>
</Field>
)}
{!!riskDisclaimerUrl && (
{!!privacyPolicyUrl && (
<Field name="agreedWithPP" component={Checkbox} className={cx('checkBox')}>
I agree with{' '}
<a href={riskDisclaimerUrl} target="_blank" rel="noopener noreferrer">
<a href={privacyPolicyUrl} target="_blank" rel="noopener noreferrer">
privacy policy
</a>
</Field>
)}
{privacyPolicyUrl && (
{!!riskDisclaimerUrl && (
<Field name="agreedWithRDP" component={Checkbox} className={cx('checkBox')}>
I have read the risk{' '}
<a href={privacyPolicyUrl} target="_blank" rel="noopener noreferrer">
disclaimer policy
I have read the{' '}
<a href={riskDisclaimerUrl} target="_blank" rel="noopener noreferrer">
risk disclaimer policy
</a>
</Field>
)}
Expand Down

0 comments on commit 3349915

Please sign in to comment.