Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/frontend/src/lib/components/core/NavbarWallet.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { nonNullish } from '@dfinity/utils';
import IconInfo from '$lib/components/icons/IconInfo.svelte';
import IconWallet from '$lib/components/icons/IconWallet.svelte';
import ButtonIcon from '$lib/components/ui/ButtonIcon.svelte';
import Hr from '$lib/components/ui/Hr.svelte';
import Popover from '$lib/components/ui/Popover.svelte';
import WalletActions from '$lib/components/wallet/WalletActions.svelte';
import WalletPicker from '$lib/components/wallet/WalletPicker.svelte';
Expand Down Expand Up @@ -46,6 +46,16 @@

<Popover anchor={button} direction="rtl" bind:visible>
<div class="container">
<div class="info">
<a
aria-label={$i18n.wallet.information}
href="https://juno.build/docs/miscellaneous/wallet"
rel="noreferrer noopener"
tabindex="-1"
target="_blank"><IconInfo size="20px" /></a
>
</div>

<div>
<WalletTotal />
</div>
Expand Down Expand Up @@ -112,4 +122,15 @@
width: fit-content;
}
}

.info {
display: flex;
justify-content: flex-end;

a {
display: flex;
justify-content: center;
align-items: center;
}
}
</style>
1 change: 1 addition & 0 deletions src/frontend/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@
"credits": "Credits",
"transfer_icp_info": "Learn how to provision your wallet in the",
"documentation": "documentation",
"information": "Learn about the wallet in the documentation",
"tx_id": "ID",
"tx_timestamp": "Timestamp",
"tx_from": "From",
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/lib/i18n/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@
"credits": "积分",
"transfer_icp_info": "了解如何为您的钱包充值",
"documentation": "文档",
"information": "在文档中了解更多钱包信息",
"tx_id": "交易ID",
"tx_timestamp": "时间",
"tx_from": "发送方",
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/lib/types/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ interface I18nWallet {
credits: string;
transfer_icp_info: string;
documentation: string;
information: string;
tx_id: string;
tx_timestamp: string;
tx_from: string;
Expand Down
Loading