-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<script lang="ts"> | ||
import { _ } from "svelte-i18n"; | ||
import { qr } from '@svelte-put/qr/img'; | ||
import colors from "tailwindcss/colors"; | ||
import { onMount } from 'svelte'; | ||
import emptyToken from '$lib/images/empty-token.svg'; | ||
import { createQrSvgString } from "@svelte-put/qr"; | ||
import { copyToClipboard, findCoinIconBySymbol } from "$lib/helpers/helpers"; | ||
export let assetSymbol: string; | ||
export let assetIcon: string; | ||
export let chainSymbol: string; | ||
export let chainIcon: string; | ||
export let depositAddress: string; | ||
export let depositMemo: string; | ||
export let miniumDepositAmount: string; | ||
|
@@ -43,7 +42,7 @@ | |
<span class="text-base font-bold text-base-content">{assetSymbol}</span> | ||
</div> | ||
|
||
<img src={findCoinIconBySymbol(assetSymbol)} alt='' class="size-8" /> | ||
<img src={assetIcon} alt='' class="size-8" /> | ||
</div> | ||
|
||
{#if chainSymbol != assetSymbol} | ||
|
@@ -54,7 +53,7 @@ | |
<span class="text-base font-bold text-base-content">{chainSymbol}</span> | ||
</div> | ||
|
||
<img src={findCoinIconBySymbol(chainSymbol)} alt='' class="size-8" /> | ||
<img src={chainIcon} alt='' class="size-8" /> | ||
</div> | ||
{/if} | ||
|
||
|
@@ -93,7 +92,7 @@ | |
<div class="flex flex-row justify-center items-center w-full"> | ||
<div class="relative rounded-2xl border p-1"> | ||
<div class="absolute inset-0 flex items-center justify-center"> | ||
<img src={findCoinIconBySymbol(assetSymbol)} alt='' class="size-8" /> | ||
<img src={assetIcon} alt='' class="size-8" /> | ||
</div> | ||
{@html memoQrSrc} | ||
Check failure on line 97 in interface/src/lib/components/admin/rebalance/deposit/mixinDepositCard.svelte GitHub Actions / lint (18.x)
|
||
</div> | ||
|
@@ -134,7 +133,7 @@ | |
<div class="flex flex-row justify-center items-center w-full"> | ||
<div class="relative rounded-2xl border p-1"> | ||
<div class="absolute inset-0 flex items-center justify-center"> | ||
<img src={findCoinIconBySymbol(assetSymbol)} alt='' class="size-8" /> | ||
<img src={assetIcon} alt='' class="size-8" /> | ||
</div> | ||
{@html addressQrSrc} | ||
Check failure on line 138 in interface/src/lib/components/admin/rebalance/deposit/mixinDepositCard.svelte GitHub Actions / lint (18.x)
|
||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters