Skip to content

Commit

Permalink
Update url constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiendekaco committed Feb 17, 2024
1 parent fdc1b61 commit 95de42e
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 26 deletions.
4 changes: 2 additions & 2 deletions docs/src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
<div class="flex">
<a
target="_blank"
href="https://www.blocknative.com/privacy-policy"
href="https://docs.subwallet.app/main/privacy-and-security/security"
class="text-sm hover:text-white">Privacy Policy</a
>
<div class="w-px bg-gray-divider mx-2 h-4" />
<a
target="_blank"
href="https://www.blocknative.com/terms-conditions"
href="https://docs.subwallet.app/main/privacy-and-security/terms-of-use"
class="text-sm hover:text-white">Terms of Service</a
>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
26 changes: 12 additions & 14 deletions packages/core/src/icons/poweredBySubwallet.ts

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions packages/core/src/views/account-center/AccountCenterPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
</style>

Expand Down Expand Up @@ -594,12 +601,12 @@
{/if}
<div class="w100">
<a
href="https://blocknative.com"
href="https://www.subwallet.app/"
target="_blank"
rel="noopener noreferrer"
class="flex justify-center items-center powered-by-container"
>
{@html poweredBySubwallet}
Polkadot version by {@html poweredBySubwallet}
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/views/connect/SelectingWallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
const wheresMyWalletDefault =
'https://wiki.polkadot.network/docs/wallets-and-extensions'
'https://www.subwallet.app/download.html?lang=1'
</script>

<style>
Expand Down
19 changes: 16 additions & 3 deletions packages/core/src/views/connect/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,19 @@
margin-bottom: 0.25rem;
}
}
.powered-by-container {
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;
}
</style>

<svelte:window bind:innerWidth={windowWidth} />
Expand Down Expand Up @@ -221,7 +234,7 @@
<div class="info-icon">{@html infoIcon}</div>
<a
href={connect.iDontHaveAWalletLink ||
'https://docs.subwallet.app/main/'}
'https://www.subwallet.app/download.html'}
target="_blank"
rel="noreferrer noopener"
>{$_('connect.selectingWallet.sidebar.IDontHaveAWallet', {
Expand Down Expand Up @@ -294,7 +307,7 @@
/>
</div>
{/if}
<div>
{@html poweredBySubwallet}
<div class="powered-by-container">
Polkadot version by {@html poweredBySubwallet}
</div>
</div>
4 changes: 2 additions & 2 deletions packages/demo/src/web3-onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 95de42e

Please sign in to comment.