-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): convert to ckBTC button for BTC mainnet (#3215)
# Motivation Add the convert-to-ckBTC button for BTC mainnet transactions page. <img width="1570" alt="Screenshot 2024-10-29 at 15 40 31" src="https://github.com/user-attachments/assets/7cd545eb-4c03-48da-bb0c-70e87ccb3053">
- Loading branch information
1 parent
d16e306
commit 92122d3
Showing
4 changed files
with
28 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script lang="ts"> | ||
import { BTC_MAINNET_TOKEN } from '$env/tokens.btc.env'; | ||
import IconCkConvert from '$lib/components/icons/IconCkConvert.svelte'; | ||
import ButtonHero from '$lib/components/ui/ButtonHero.svelte'; | ||
import { isBusy } from '$lib/derived/busy.derived'; | ||
import { i18n } from '$lib/stores/i18n.store'; | ||
</script> | ||
|
||
<ButtonHero disabled={$isBusy} ariaLabel={$i18n.convert.text.convert_to_ckbtc}> | ||
<IconCkConvert size="28" slot="icon" /> | ||
<span>{BTC_MAINNET_TOKEN.twinTokenSymbol}</span> | ||
</ButtonHero> |
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
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