From def939d725e60717910bdced569154c5329a2b7f Mon Sep 17 00:00:00 2001 From: Anni Piragauta Date: Thu, 31 Oct 2024 12:44:04 -0500 Subject: [PATCH] refactor: adding new design to pegout flow --- .../exchange/SelectBitcoinWallet.vue | 2 +- .../components/status/StatusSummary.vue | 106 +++---- src/common/components/status/TxPegin.vue | 2 +- src/common/components/status/TxPegout.vue | 2 +- src/common/services/FlyoverService.ts | 10 +- src/common/store/constants.ts | 9 + src/common/styles/_cards.scss | 14 +- src/common/styles/_home.scss | 2 +- src/common/types/Flyover/FlyoverPegout.ts | 1 + src/common/utils/common.ts | 1 + src/common/views/Home.vue | 27 +- src/common/views/SuccessTx.vue | 60 +++- src/pegin/components/create/SendBitcoin.vue | 11 +- src/pegout/components/PegoutForm.vue | 123 ++++++--- src/pegout/components/PegoutOption.vue | 259 ++++++++++-------- src/pegout/components/RbtcInputAmount.vue | 45 +-- src/pegout/store/FlyoverPegout/actions.ts | 4 + src/pegout/store/FlyoverPegout/mutations.ts | 3 + src/status/views/Status.vue | 2 +- 19 files changed, 396 insertions(+), 287 deletions(-) diff --git a/src/common/components/exchange/SelectBitcoinWallet.vue b/src/common/components/exchange/SelectBitcoinWallet.vue index 44fc3dfa0..738036680 100644 --- a/src/common/components/exchange/SelectBitcoinWallet.vue +++ b/src/common/components/exchange/SelectBitcoinWallet.vue @@ -66,7 +66,7 @@ export default { const wallets = computed(() => walletConf.wallets.filter((wallet) => { const walletConfJsonConstant = wallet.constant as BtcWallet; const flag = getFeature.value(FeatureNames[walletConfJsonConstant]); - return flag?.value === 'enabled'; + return flag?.value === constants.ENABLED; })); const bitcoinWallet = useStateAttribute('pegInTx', 'bitcoinWallet'); diff --git a/src/common/components/status/StatusSummary.vue b/src/common/components/status/StatusSummary.vue index 177ee49df..81f27d987 100644 --- a/src/common/components/status/StatusSummary.vue +++ b/src/common/components/status/StatusSummary.vue @@ -1,8 +1,8 @@ - + diff --git a/src/common/components/status/TxPegout.vue b/src/common/components/status/TxPegout.vue index 0266fc2a9..3c3661dc3 100644 --- a/src/common/components/status/TxPegout.vue +++ b/src/common/components/status/TxPegout.vue @@ -1,6 +1,6 @@