From b790895e276c81221ce51e543780498083f22f1a Mon Sep 17 00:00:00 2001 From: mvaivre Date: Wed, 16 Oct 2024 17:54:31 +0200 Subject: [PATCH] Improve Transaction modal --- .../src/features/modals/BottomModal.tsx | 2 +- .../features/modals/BottomModalFlashList.tsx | 2 +- .../src/features/modals/BottomModalHeader.tsx | 6 ++++- .../transactionsDisplay/TransactionModal.tsx | 26 +++++-------------- 4 files changed, 13 insertions(+), 23 deletions(-) diff --git a/apps/mobile-wallet/src/features/modals/BottomModal.tsx b/apps/mobile-wallet/src/features/modals/BottomModal.tsx index f55d43511..6477a1a65 100644 --- a/apps/mobile-wallet/src/features/modals/BottomModal.tsx +++ b/apps/mobile-wallet/src/features/modals/BottomModal.tsx @@ -52,7 +52,7 @@ const BottomModal = ({ }) return ( - + + {children({ ...modalState.contentScrollHandlers, onContentSizeChange: modalState.handleContentSizeChange, diff --git a/apps/mobile-wallet/src/features/modals/BottomModalHeader.tsx b/apps/mobile-wallet/src/features/modals/BottomModalHeader.tsx index 8a119ce08..4c071ba10 100644 --- a/apps/mobile-wallet/src/features/modals/BottomModalHeader.tsx +++ b/apps/mobile-wallet/src/features/modals/BottomModalHeader.tsx @@ -32,7 +32,11 @@ interface BottomModalHeaderProps { const BottomModalHeader = ({ height, handleClose, title }: BottomModalHeaderProps) => ( - {title && {title}} + {title && ( + + {title} + + )} diff --git a/apps/mobile-wallet/src/features/transactionsDisplay/TransactionModal.tsx b/apps/mobile-wallet/src/features/transactionsDisplay/TransactionModal.tsx index 06389c55e..0cb670b67 100644 --- a/apps/mobile-wallet/src/features/transactionsDisplay/TransactionModal.tsx +++ b/apps/mobile-wallet/src/features/transactionsDisplay/TransactionModal.tsx @@ -29,7 +29,6 @@ import AppText from '~/components/AppText' import Button from '~/components/buttons/Button' import IOList from '~/components/IOList' import BoxSurface from '~/components/layout/BoxSurface' -import { ModalScreenTitle, ScreenSection } from '~/components/layout/Screen' import NFTThumbnail from '~/components/NFTThumbnail' import Row from '~/components/Row' import BottomModal from '~/features/modals/BottomModal' @@ -60,18 +59,7 @@ const TransactionModal = withModal(({ id, tx }) => { const openNftGridModal = () => dispatch(openModal({ name: 'NftGridModal', props: { nftsData } })) return ( - - - {t('Transaction')} -