From 95de42e1ae5f162f69daf9071a59dc2150971c2e Mon Sep 17 00:00:00 2001 From: Thiendekaco Date: Sat, 17 Feb 2024 17:46:37 +0700 Subject: [PATCH] Update url constant --- docs/src/lib/components/Footer.svelte | 4 +-- packages/core/src/i18n/en.json | 2 +- packages/core/src/icons/poweredBySubwallet.ts | 26 +++++++++---------- .../account-center/AccountCenterPanel.svelte | 13 +++++++--- .../src/views/connect/SelectingWallet.svelte | 2 +- .../core/src/views/connect/Sidebar.svelte | 19 +++++++++++--- packages/demo/src/web3-onboard.ts | 4 +-- 7 files changed, 44 insertions(+), 26 deletions(-) diff --git a/docs/src/lib/components/Footer.svelte b/docs/src/lib/components/Footer.svelte index 753bc4574..dee01b617 100644 --- a/docs/src/lib/components/Footer.svelte +++ b/docs/src/lib/components/Footer.svelte @@ -55,13 +55,13 @@
Privacy Policy diff --git a/packages/core/src/i18n/en.json b/packages/core/src/i18n/en.json index 28a36eb7c..c5296da6e 100644 --- a/packages/core/src/i18n/en.json +++ b/packages/core/src/i18n/en.json @@ -107,7 +107,7 @@ "gettingStartedGuide": "Getting Started Guide", "smartContracts": "Smart Contract(s)", "explore": "Explore", - "poweredBy": "powered by", + "poweredBy": "Polkadot version by", "addAccount": "Add Account", "setPrimaryAccount": "Set Primary Account", "disconnectWallet": "Disconnect Wallet", diff --git a/packages/core/src/icons/poweredBySubwallet.ts b/packages/core/src/icons/poweredBySubwallet.ts index 9a2526ccb..fe311c44a 100644 --- a/packages/core/src/icons/poweredBySubwallet.ts +++ b/packages/core/src/icons/poweredBySubwallet.ts @@ -1,25 +1,23 @@ export default ` - - - - - - - + + + + + + - + - + - - + + - - + + - ` diff --git a/packages/core/src/views/account-center/AccountCenterPanel.svelte b/packages/core/src/views/account-center/AccountCenterPanel.svelte index 2b878a87a..c339f3acc 100644 --- a/packages/core/src/views/account-center/AccountCenterPanel.svelte +++ b/packages/core/src/views/account-center/AccountCenterPanel.svelte @@ -334,8 +334,15 @@ } .powered-by-container { - color: var(--text-color); + color: rgba(255, 255, 255, 0.65); padding: 0.75rem; + font-size: 12px; + text-decoration: none; + line-height: 20px; + font-weight: 500; + display: flex; + gap: 4px; + align-items: center; } @@ -594,12 +601,12 @@ {/if}
diff --git a/packages/core/src/views/connect/SelectingWallet.svelte b/packages/core/src/views/connect/SelectingWallet.svelte index a9d3ae27a..3fc759f5c 100644 --- a/packages/core/src/views/connect/SelectingWallet.svelte +++ b/packages/core/src/views/connect/SelectingWallet.svelte @@ -24,7 +24,7 @@ } const wheresMyWalletDefault = - 'https://wiki.polkadot.network/docs/wallets-and-extensions' + 'https://www.subwallet.app/download.html?lang=1' @@ -221,7 +234,7 @@
{@html infoIcon}
{$_('connect.selectingWallet.sidebar.IDontHaveAWallet', { @@ -294,7 +307,7 @@ /> {/if} -
- {@html poweredBySubwallet} +
+ Polkadot version by {@html poweredBySubwallet}
diff --git a/packages/demo/src/web3-onboard.ts b/packages/demo/src/web3-onboard.ts index 69a96e75c..7c8bd56aa 100644 --- a/packages/demo/src/web3-onboard.ts +++ b/packages/demo/src/web3-onboard.ts @@ -187,8 +187,8 @@ export default init({ // Optional - but allows for dapps to require users to agree to TOS and privacy policy before connecting a wallet agreement: { version: '1.0.0', - termsUrl: 'https://www.blocknative.com/terms-conditions', - privacyUrl: 'https://www.blocknative.com/privacy-policy' + termsUrl: 'https://docs.subwallet.app/main/privacy-and-security/terms-of-use', + privacyUrl: 'https://docs.subwallet.app/main/privacy-and-security/security' } }, notify: {