From 92122d36be3948581a0aabc54d0c5c00b40c3628 Mon Sep 17 00:00:00 2001 From: Denys Karmazyn Date: Wed, 30 Oct 2024 10:09:19 +0100 Subject: [PATCH] feat(frontend): convert to ckBTC button for BTC mainnet (#3215) # Motivation Add the convert-to-ckBTC button for BTC mainnet transactions page. Screenshot 2024-10-29 at 15 40 31 --- .../src/btc/convert/ConvertToCkBTC.svelte | 12 ++++++++++++ .../src/lib/components/hero/Actions.svelte | 17 ++++++++++++++--- src/frontend/src/lib/i18n/en.json | 1 + src/frontend/src/lib/types/i18n.d.ts | 1 + 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 src/frontend/src/btc/convert/ConvertToCkBTC.svelte diff --git a/src/frontend/src/btc/convert/ConvertToCkBTC.svelte b/src/frontend/src/btc/convert/ConvertToCkBTC.svelte new file mode 100644 index 0000000000..c509dfc8b1 --- /dev/null +++ b/src/frontend/src/btc/convert/ConvertToCkBTC.svelte @@ -0,0 +1,12 @@ + + + + + {BTC_MAINNET_TOKEN.twinTokenSymbol} + diff --git a/src/frontend/src/lib/components/hero/Actions.svelte b/src/frontend/src/lib/components/hero/Actions.svelte index de013cbc75..8ec446bf20 100644 --- a/src/frontend/src/lib/components/hero/Actions.svelte +++ b/src/frontend/src/lib/components/hero/Actions.svelte @@ -1,6 +1,8 @@