From a450d91294578d052c90309087c3bc725ea43f0a Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Mon, 25 Nov 2024 13:41:24 -0800 Subject: [PATCH] address feedback --- .../popup/approval/transaction/index.tsx | 10 ++----- .../popup/approval/transaction/view-tabs.tsx | 2 +- packages/ui/components/ui/tabs/index.tsx | 3 +-- .../ui/tx/actions-views/action-details.tsx | 2 +- .../ui/tx/actions-views/swap/index.tsx | 2 +- .../ui/tx/actions-views/swap/one-way-swap.tsx | 27 ++----------------- .../tx/actions-views/value-with-address.tsx | 6 ++--- packages/ui/components/ui/tx/index.tsx | 4 +-- packages/ui/components/ui/value/value.tsx | 2 +- 9 files changed, 14 insertions(+), 44 deletions(-) diff --git a/apps/extension/src/routes/popup/approval/transaction/index.tsx b/apps/extension/src/routes/popup/approval/transaction/index.tsx index 1352dc90..e7b3586c 100644 --- a/apps/extension/src/routes/popup/approval/transaction/index.tsx +++ b/apps/extension/src/routes/popup/approval/transaction/index.tsx @@ -48,10 +48,7 @@ export const TransactionApproval = () => { return (
-

+

Confirm Transaction

@@ -70,10 +67,7 @@ export const TransactionApproval = () => { )}
-
+
diff --git a/apps/extension/src/routes/popup/approval/transaction/view-tabs.tsx b/apps/extension/src/routes/popup/approval/transaction/view-tabs.tsx index 9baf7941..b0bdfbac 100644 --- a/apps/extension/src/routes/popup/approval/transaction/view-tabs.tsx +++ b/apps/extension/src/routes/popup/approval/transaction/view-tabs.tsx @@ -20,7 +20,7 @@ export const ViewTabs = ({ onValueChange={value => onValueChange(value as TransactionViewTab)} > )); diff --git a/packages/ui/components/ui/tx/actions-views/action-details.tsx b/packages/ui/components/ui/tx/actions-views/action-details.tsx index 97ffcf99..2779ea4f 100644 --- a/packages/ui/components/ui/tx/actions-views/action-details.tsx +++ b/packages/ui/components/ui/tx/actions-views/action-details.tsx @@ -74,7 +74,7 @@ const ActionDetailsRow = ({ {label} ) : ( - {label} + {label} )} diff --git a/packages/ui/components/ui/tx/actions-views/swap/index.tsx b/packages/ui/components/ui/tx/actions-views/swap/index.tsx index aab630b1..c6ab05ae 100644 --- a/packages/ui/components/ui/tx/actions-views/swap/index.tsx +++ b/packages/ui/components/ui/tx/actions-views/swap/index.tsx @@ -53,7 +53,7 @@ export const SwapViewComponent = ({ )} -
+
diff --git a/packages/ui/components/ui/tx/actions-views/swap/one-way-swap.tsx b/packages/ui/components/ui/tx/actions-views/swap/one-way-swap.tsx index 1ac82f5e..7f50403a 100644 --- a/packages/ui/components/ui/tx/actions-views/swap/one-way-swap.tsx +++ b/packages/ui/components/ui/tx/actions-views/swap/one-way-swap.tsx @@ -15,31 +15,8 @@ export const OneWaySwap = ({ input, output }: { input: ValueView; output: ValueV
-
-
-
-
-
-
+
+
diff --git a/packages/ui/components/ui/tx/actions-views/value-with-address.tsx b/packages/ui/components/ui/tx/actions-views/value-with-address.tsx index d0611d48..8699f67a 100644 --- a/packages/ui/components/ui/tx/actions-views/value-with-address.tsx +++ b/packages/ui/components/ui/tx/actions-views/value-with-address.tsx @@ -11,7 +11,6 @@ export const ValueWithAddress = ({ label, addressView, }: { - /** What to display before the address. Typically a `ValueViewComponent`. */ children: ReactNode; label: 'from' | 'to'; addressView?: AddressView; @@ -22,8 +21,9 @@ export const ValueWithAddress = ({ {addressView && (
{label} - - +
+ +
)}
diff --git a/packages/ui/components/ui/tx/index.tsx b/packages/ui/components/ui/tx/index.tsx index e0c566bf..fb737dae 100644 --- a/packages/ui/components/ui/tx/index.tsx +++ b/packages/ui/components/ui/tx/index.tsx @@ -66,12 +66,12 @@ export const TransactionViewComponent = ({ return (
{txv.bodyView?.memoView?.memoView && } - Actions
}> + Actions
}> {txv.bodyView?.actionViews.map((av, i) => ( ))} - Parameters
}> + Parameters
}> )} {showDenom && ( - + {symbol} )}