From b2d55e59f56e10d96620c8d271b6dba0d075f0ef Mon Sep 17 00:00:00 2001 From: Harsh R <53080940+fullstackninja864@users.noreply.github.com> Date: Tue, 23 Jan 2024 02:17:28 +0530 Subject: [PATCH] fix(ui-ux): show reset btn on service provider screen without edit (#4155) * fix(ui-ux): fixed address book forgets saved addresses when user switch to custom provider * fix(ui-ux): show reset btn on service provider screen without edit * center align convert text in GetDFIScreen --------- Co-authored-by: Pierre Gee --- .../Portfolio/screens/GetDFIScreen.tsx | 2 +- .../screens/ServiceProviderScreen.tsx | 73 ++++++++++--------- 2 files changed, 39 insertions(+), 36 deletions(-) diff --git a/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/GetDFIScreen.tsx b/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/GetDFIScreen.tsx index c825eb2c0a..9571e2f3d7 100644 --- a/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/GetDFIScreen.tsx +++ b/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/GetDFIScreen.tsx @@ -252,7 +252,7 @@ function StepThree(): JSX.Element { dark={tailwind("bg-mono-dark-v2-00 border-mono-dark-v2-200")} light={tailwind("bg-mono-light-v2-00 border-mono-light-v2-200")} > - + ))} - {showActionButtons && ( - 1, - })} - > - - - {translate( - "screens/ServiceProviderScreen", - "Only add URLs that are fully trusted and secured. Adding malicious service providers may result in irrecoverable funds. Proceed at your own risk.", - )} - - - await submitCustomServiceProvider()} - disabled={ - !( - urlInputValues.DVM.isValid && - urlInputValues.EVM.isValid && - urlInputValues.ETHRPC.isValid - ) - } - /> - - - )} + 1, + })} + > + {showActionButtons && ( + <> + + + {translate( + "screens/ServiceProviderScreen", + "Only add URLs that are fully trusted and secured. Adding malicious service providers may result in irrecoverable funds. Proceed at your own risk.", + )} + + + await submitCustomServiceProvider()} + disabled={ + !( + urlInputValues.DVM.isValid && + urlInputValues.EVM.isValid && + urlInputValues.ETHRPC.isValid + ) + } + /> + + )} + {(showActionButtons || isCustomUrl) && } + ); }