From 29b79b733c9e70709e9783ff894adcbe7afd3550 Mon Sep 17 00:00:00 2001 From: SorinC6 Date: Thu, 9 Nov 2023 10:27:26 +0200 Subject: [PATCH] add error boundary for orders --- .../StartSwapScreen/CreateOrder/EditLimitPrice.tsx | 2 +- .../StartSwapScreen/ListOrders/ListOrders.tsx | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx index f034521e69..84481d843a 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx @@ -68,7 +68,7 @@ const AmountInput = ({onChange, value, editable, inputRef}: AmountInputProps) => placeholder="0" onChangeText={onChange} allowFontScaling - selectionColor={COLORS.TRANSPARENT_BLACK} + selectionColor="#242838" style={styles.amountInput} underlineColorAndroid="transparent" editable={editable} diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/ListOrders.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/ListOrders.tsx index 330be4f079..3cf4835fdc 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/ListOrders.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/ListOrders.tsx @@ -9,6 +9,8 @@ import {ButtonGroup} from '../../../common/ButtonGroup/ButtonGroup' import {useStrings} from '../../../common/strings' import {CompletedOrders, CompletedOrdersSkeleton} from './CompletedOrders' import {OpenOrders, OpenOrdersSkeleton} from './OpenOrders' +import {ErrorBoundary} from 'react-error-boundary' +import {ServiceUnavailable} from '../../../common/ServiceUnavailable/ServiceUnavailable' export const ListOrders = () => { const {navigateToTxHistory} = useWalletNavigation() @@ -36,11 +38,19 @@ export const ListOrders = () => { {orderStatusIndex === 0 ? ( }}> - + } + > + + ) : ( }}> - + } + > + + )}