From ff6f43d7aa0a5562a0a22add0572179fcd009ba4 Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Fri, 11 Nov 2022 13:34:32 -0500 Subject: [PATCH] fix(bag-footer): remove double border top and excess margin (#5171) --- src/nft/components/bag/Bag.tsx | 109 ++++++++++++------------ src/nft/components/bag/BagFooter.css.ts | 1 - 2 files changed, 54 insertions(+), 56 deletions(-) diff --git a/src/nft/components/bag/Bag.tsx b/src/nft/components/bag/Bag.tsx index 365cd662e7..86b519b3dd 100644 --- a/src/nft/components/bag/Bag.tsx +++ b/src/nft/components/bag/Bag.tsx @@ -279,63 +279,62 @@ const Bag = () => { [itemsInBag, totalUsdPrice] ) + if (!bagExpanded || !isNFTPage) { + return null + } + return ( - <> - {bagExpanded && isNFTPage ? ( - - - {!(isProfilePage && profilePageState === ProfilePageStateType.LISTING) ? ( - <> - - {shouldRenderEmptyState && } - 0} /> - - {isProfilePage ? : } - - - {hasAssetsToShow && !isProfilePage && ( - - )} - {isSellingAssets && isProfilePage && ( - { - isMobile && toggleBag() - setProfilePageState(ProfilePageStateType.LISTING) - }} - > - Continue - - )} - - ) : ( - + + + {!(isProfilePage && profilePageState === ProfilePageStateType.LISTING) ? ( + <> + + {shouldRenderEmptyState && } + 0} /> + + {isProfilePage ? : } + + {hasAssetsToShow && !isProfilePage && ( + )} - - {isDetailsPage ? ( - - ) : ( - isOpen && (!bagIsLocked ? setModalIsOpen(false) : undefined)} /> - )} - - ) : null} - + {isSellingAssets && isProfilePage && ( + { + isMobile && toggleBag() + setProfilePageState(ProfilePageStateType.LISTING) + }} + > + Continue + + )} + + ) : ( + + )} + + {isDetailsPage ? ( + + ) : ( + isOpen && (!bagIsLocked ? setModalIsOpen(false) : undefined)} /> + )} + ) } diff --git a/src/nft/components/bag/BagFooter.css.ts b/src/nft/components/bag/BagFooter.css.ts index 686b186d93..0e89c1cee2 100644 --- a/src/nft/components/bag/BagFooter.css.ts +++ b/src/nft/components/bag/BagFooter.css.ts @@ -3,7 +3,6 @@ import { body } from 'nft/css/common.css' import { sprinkles } from 'nft/css/sprinkles.css' export const footerContainer = sprinkles({ - marginTop: '20', paddingX: '16', })