From 2e768f41edb3021475ca663e1bd73d73aae8058a Mon Sep 17 00:00:00 2001 From: Pete Watters <2938440+pete-watters@users.noreply.github.com> Date: Fri, 8 Sep 2023 10:09:01 +0100 Subject: [PATCH] chore: more refactors --- src/app/components/icons/stx-icon.tsx | 8 +++----- .../pages/rpc-send-transfer/rpc-send-transfer-summary.tsx | 8 ++++---- src/app/pages/rpc-sign-psbt/rpc-sign-psbt-summary.tsx | 4 ++-- .../locked-bitcoin-summary/locked-bitcoin-summary.tsx | 4 ++-- .../send/ordinal-inscription/sent-inscription-summary.tsx | 4 ++-- src/app/pages/send/sent-summary/brc20-sent-symmary.tsx | 2 +- src/app/pages/send/sent-summary/btc-sent-summary.tsx | 4 ++-- src/app/pages/send/sent-summary/stx-sent-summary.tsx | 4 ++-- 8 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/app/components/icons/stx-icon.tsx b/src/app/components/icons/stx-icon.tsx index bdd79f03fe1..0ad5256d81e 100644 --- a/src/app/components/icons/stx-icon.tsx +++ b/src/app/components/icons/stx-icon.tsx @@ -1,8 +1,6 @@ -import { BoxProps, Svg } from 'leather-styles/jsx'; - -export function StxIcon(props: BoxProps) { +export function StxIcon(props: React.SVGProps) { return ( - + - + ); } diff --git a/src/app/pages/rpc-send-transfer/rpc-send-transfer-summary.tsx b/src/app/pages/rpc-send-transfer/rpc-send-transfer-summary.tsx index 07d28f1105d..e954ee24097 100644 --- a/src/app/pages/rpc-send-transfer/rpc-send-transfer-summary.tsx +++ b/src/app/pages/rpc-send-transfer/rpc-send-transfer-summary.tsx @@ -132,8 +132,8 @@ export function RpcSendTransferSummary() { fiatValue={txFiatValue} fiatSymbol={txFiatValueSymbol} symbol={symbol} - icon={FiCheck} - mb="space.05" + icon={} + mb="space.05 " /> } /> @@ -145,8 +145,8 @@ export function RpcSendTransferSummary() { - - + } label="View Details" onClick={onClickLink} /> + } label="Copy ID" onClick={onClickCopy} /> diff --git a/src/app/pages/rpc-sign-psbt/rpc-sign-psbt-summary.tsx b/src/app/pages/rpc-sign-psbt/rpc-sign-psbt-summary.tsx index a344ec8be3c..1908b9d4260 100644 --- a/src/app/pages/rpc-sign-psbt/rpc-sign-psbt-summary.tsx +++ b/src/app/pages/rpc-sign-psbt/rpc-sign-psbt-summary.tsx @@ -58,8 +58,8 @@ export function RpcSignPsbtSummary() { - - + } label="View Details" onClick={onClickLink} /> + } label="Copy ID" onClick={onClickCopy} /> diff --git a/src/app/pages/send/locked-bitcoin-summary/locked-bitcoin-summary.tsx b/src/app/pages/send/locked-bitcoin-summary/locked-bitcoin-summary.tsx index b60abd43331..0637ac7663c 100644 --- a/src/app/pages/send/locked-bitcoin-summary/locked-bitcoin-summary.tsx +++ b/src/app/pages/send/locked-bitcoin-summary/locked-bitcoin-summary.tsx @@ -58,8 +58,8 @@ export function LockBitcoinSummary() { - - + } label="View Details" /> + } label="Copy ID" /> diff --git a/src/app/pages/send/ordinal-inscription/sent-inscription-summary.tsx b/src/app/pages/send/ordinal-inscription/sent-inscription-summary.tsx index a9ea91de92f..0b6742f7bb0 100644 --- a/src/app/pages/send/ordinal-inscription/sent-inscription-summary.tsx +++ b/src/app/pages/send/ordinal-inscription/sent-inscription-summary.tsx @@ -78,8 +78,8 @@ export function SendInscriptionSummary() { - - + } label="View Details" /> + } label="Copy ID" /> diff --git a/src/app/pages/send/sent-summary/brc20-sent-symmary.tsx b/src/app/pages/send/sent-summary/brc20-sent-symmary.tsx index 0ca9784300b..3d236800591 100644 --- a/src/app/pages/send/sent-summary/brc20-sent-symmary.tsx +++ b/src/app/pages/send/sent-summary/brc20-sent-symmary.tsx @@ -84,7 +84,7 @@ export function Brc20SentSummary() { } label="Pending BRC-20 transfers" /> diff --git a/src/app/pages/send/sent-summary/btc-sent-summary.tsx b/src/app/pages/send/sent-summary/btc-sent-summary.tsx index 3655d9aa5f8..170d4e9c523 100644 --- a/src/app/pages/send/sent-summary/btc-sent-summary.tsx +++ b/src/app/pages/send/sent-summary/btc-sent-summary.tsx @@ -78,8 +78,8 @@ export function BtcSentSummary() { - - + } label="View Details" /> + } label="Copy ID" /> diff --git a/src/app/pages/send/sent-summary/stx-sent-summary.tsx b/src/app/pages/send/sent-summary/stx-sent-summary.tsx index 0d18e66305d..fdb56641673 100644 --- a/src/app/pages/send/sent-summary/stx-sent-summary.tsx +++ b/src/app/pages/send/sent-summary/stx-sent-summary.tsx @@ -79,8 +79,8 @@ export function StxSentSummary() { - - + } label="View Details" /> + } label="Copy ID" />