From 62bef53d163e82a99bc2b86b3dd23e37ab3b04c0 Mon Sep 17 00:00:00 2001 From: Matt Upham <30577966+mattupham@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:06:46 -0700 Subject: [PATCH] Clean up --- .../recent-activity-transaction-row.tsx | 77 ++++++++----------- 1 file changed, 30 insertions(+), 47 deletions(-) diff --git a/packages/web/components/transactions/recent-activity/recent-activity-transaction-row.tsx b/packages/web/components/transactions/recent-activity/recent-activity-transaction-row.tsx index 58c9af4e37..ae306225f0 100644 --- a/packages/web/components/transactions/recent-activity/recent-activity-transaction-row.tsx +++ b/packages/web/components/transactions/recent-activity/recent-activity-transaction-row.tsx @@ -87,59 +87,42 @@ export const TransferRow: FunctionComponent = ({ ) : null; - const rightComponent = - transfer?.direction === "withdraw" ? ( - <> - - - - - ) : ( - <> - - - - - ); + const rightComponent = [ + , + , + , + ]; + + const orderedRightComponent = + transfer?.direction === "withdraw" + ? rightComponent + : rightComponent.reverse(); return ( {orderedRightComponent}} /> ); };