Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Transak text #1461

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/app/pages/FiatOnramp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Layout(props: { children?: React.ReactNode }) {
background="background-front"
pad="medium"
>
<Header>{t('fiatOnramp.header', 'Buy crypto to your wallet')}</Header>
<Header>{t('fiatOnramp.header', 'Buy ROSE')}</Header>
<p>
{t(
'fiatOnramp.description',
Expand Down Expand Up @@ -81,7 +81,7 @@ export function FiatOnramp() {
<AlertBox status="error" icon={<CircleAlert size="24px" color="currentColor" />}>
{t(
'fiatOnramp.thirdPartyDisclaimer',
'This service is provided by an external party. Oasis does not carry any responsibility.',
'This service is provided by an external party. Oasis does not carry any responsibility. All fees charged by Transak.',
)}
</AlertBox>

Expand All @@ -103,12 +103,15 @@ export function FiatOnramp() {
allow="camera;microphone;fullscreen;payment"
// TODO: maybe restrict top-navigation with sandbox=""
src={`${process.env.REACT_APP_TRANSAK_URL}/?${new URLSearchParams({
// https://docs.transak.com/docs/query-parameters
apiKey: process.env.REACT_APP_TRANSAK_PARTNER_ID,
productsAvailed: 'BUY',
cryptoCurrencyCode: 'ROSE',
walletAddress: walletAddress,
disableWalletAddressForm: 'true',
isFeeCalculationHidden: 'false',

exchangeScreenTitle: t('fiatOnramp.headerInWidget', 'Purchase ROSE to your wallet'),
themeColor: '#18213c',
}).toString()}`}
style={{
Expand Down
5 changes: 3 additions & 2 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,14 @@
},
"fiatOnramp": {
"description": "This feature allows you to convert your fiat currency into cryptocurrency.",
"header": "Buy crypto to your wallet",
"header": "Buy ROSE",
"headerInWidget": "Purchase ROSE to your wallet",
"notMainnet": "You can only use this feature when your are on the mainnet.",
"notYourAccount": "You can only use this feature when your wallet is open.",
"openYourWallet": "Open your wallet",
"switchToMainnet": "Switch to Mainnet",
"thirdPartyAcknowledge": "I understand that I’m using a third-party solution and Oasis does not carry any responsibility over the usage of this solution.",
"thirdPartyDisclaimer": "This service is provided by an external party. Oasis does not carry any responsibility."
"thirdPartyDisclaimer": "This service is provided by an external party. Oasis does not carry any responsibility. All fees charged by Transak."
},
"footer": {
"github": "Oasis Wallet is fully <GithubLink>open source</GithubLink> - Feedback and issues are appreciated!",
Expand Down