From 464350e6d57e4ad091ca767ab0500befc6974198 Mon Sep 17 00:00:00 2001 From: Mark Hinschberger Date: Mon, 4 Sep 2023 16:39:03 +0100 Subject: [PATCH] feat: rework button active states (#1772) --- .../BorrowedPositionsListItem.tsx | 32 +++++++++---------- .../GhoBorrowedPositionsListItem.tsx | 28 ++++++++-------- .../SuppliedPositionsListItem.tsx | 23 +++++++------ .../SuppliedPositionsListMobileItem.tsx | 22 ++++++------- 4 files changed, 52 insertions(+), 53 deletions(-) diff --git a/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsListItem.tsx b/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsListItem.tsx index cdfee0e95e..a914d51f37 100644 --- a/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsListItem.tsx +++ b/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsListItem.tsx @@ -152,23 +152,23 @@ const BorrowedPositionsListItemDesktop = ({ - {showSwitchButton ? ( ) : ( - )} + ); @@ -252,19 +252,10 @@ const BorrowedPositionsListItemMobile = ({ - {showSwitchButton ? ( ) : ( - )} + ); diff --git a/src/modules/dashboard/lists/BorrowedPositionsList/GhoBorrowedPositionsListItem.tsx b/src/modules/dashboard/lists/BorrowedPositionsList/GhoBorrowedPositionsListItem.tsx index bd6c795e59..7e10507dc2 100644 --- a/src/modules/dashboard/lists/BorrowedPositionsList/GhoBorrowedPositionsListItem.tsx +++ b/src/modules/dashboard/lists/BorrowedPositionsList/GhoBorrowedPositionsListItem.tsx @@ -184,13 +184,10 @@ const GhoBorrowedPositionsListItemDesktop = ({ - {showSwitchButton ? ( )} + ); @@ -261,17 +261,8 @@ const GhoBorrowedPositionsListItemMobile = ({ - {showSwitchButton ? ( - ) : ( @@ -279,6 +270,15 @@ const GhoBorrowedPositionsListItemMobile = ({ Borrow )} + ); diff --git a/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx b/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx index 3304b591af..5d39be3eee 100644 --- a/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx +++ b/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx @@ -88,20 +88,10 @@ export const SuppliedPositionsListItem = ({ - - {isSwapButton ? ( )} + ); diff --git a/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListMobileItem.tsx b/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListMobileItem.tsx index d55cc6837a..dd4f3e977d 100644 --- a/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListMobileItem.tsx +++ b/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListMobileItem.tsx @@ -94,19 +94,10 @@ export const SuppliedPositionsListMobileItem = ({ - {isSwapButton ? ( )} + );