Skip to content

Commit

Permalink
Merge pull request #225 from oasisprotocol/tjanez/add-terms-and-cond
Browse files Browse the repository at this point in the history
AboutUs: Add Terms and Conditions link
  • Loading branch information
tjanez authored Jan 17, 2022
2 parents a670188 + ae3cf7b commit 7969967
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
"inputNonceError":"Please enter a valid nonce",
"confirmEnv":"Please ensure that the system and network environment you are using is absolutely safe before performing this operation",
"ledgerNotSupport":"This browser does not support Ledger temporarily",
"userAgree":"Terms and Conditions",
"termsAndConditions":"Terms and Conditions",
"agree":"Agree",
"pleaseOpenInLedger":"Open the Oasis app on your Ledger device",
"postFailed": "Transaction broadcast failed",
"confirmInfoLedger":"Please confirm on your Ledger wallet",

"userPrivateProtocol":"Privacy Policy",
"privacyPolicy":"Privacy Policy",
"contactUs":"Contact Us",
"confirmDelete":"Confirm Delete",
"onConfirm":"Confirm",
Expand Down
6 changes: 3 additions & 3 deletions src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@
"inputNonceError":"请输入有效的Nonce",
"confirmEnv":"请确保你所使用的系统及网络环境绝对安全再执行些操作。",
"ledgerNotSupport":"此浏览器暂时不支持Ledger",
"userAgree":"用户协议",
"termsAndConditions":"條款和條件",
"agree":"同意",
"pleaseOpenInLedger":"在Ledger硬件中打开Oasis的App",
"postFailed": "广播失败",

"userPrivateProtocol":"隐私策略",
"privacyPolicy":"隐私策略",
"contactUs":"联系我们",
"confirmDelete":"是否确认删除",
"onConfirm":"确认",
Expand Down Expand Up @@ -268,7 +268,7 @@
"depositToAddress":"充值地址",
"depositInfo":"充值信息",
"ledgerNotSupportTip":" 暂不支持Ledger账户",

"importOasisKey":"私钥(Oasis原生)",
"importOEvmKey":"私钥(兼容以太坊)",
"evmAccount":"兼容以太坊账户",
Expand Down
7 changes: 5 additions & 2 deletions src/popup/pages/AboutUs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class AboutUs extends React.Component {
onClickPrivacyPolicy = () => {
openTab('https://oasisprotocol.org/privacy-policy')
}
onClickTermsAndConditions = () => {
openTab('https://wallet.oasisprotocol.org/t-c')
}
onClickGithub = () => {
openTab('https://github.com/oasisprotocol/oasis-wallet-ext/')
}
Expand All @@ -68,8 +71,8 @@ class AboutUs extends React.Component {
}
renderWalletDetail = () => {
return (<div className={"wallet-detail-container"}>
{this.renderWalletItem(getLanguage("userPrivateProtocol"), this.onClickPrivacyPolicy)}
{this.renderWalletItem(getLanguage("userAgree"))}
{this.renderWalletItem(getLanguage("privacyPolicy"), this.onClickPrivacyPolicy)}
{this.renderWalletItem(getLanguage("termsAndConditions"), this.onClickTermsAndConditions)}
{this.renderWalletItem("GitHub", this.onClickGithub)}
{this.renderWalletItem(getLanguage("contactUs"), this.onClickContactUs)}
</div>)
Expand Down

0 comments on commit 7969967

Please sign in to comment.