From 598158cf3e28d10cea4ef8812b083ccda2c67cb9 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 12 Nov 2024 23:18:09 +0800 Subject: [PATCH 1/2] fix pressing the text link causes the validation error to show up --- .../companyCards/addNew/DetailsStep.tsx | 57 +++++++++---------- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/src/pages/workspace/companyCards/addNew/DetailsStep.tsx b/src/pages/workspace/companyCards/addNew/DetailsStep.tsx index a313275b6bb1..88395e27f6a7 100644 --- a/src/pages/workspace/companyCards/addNew/DetailsStep.tsx +++ b/src/pages/workspace/companyCards/addNew/DetailsStep.tsx @@ -172,40 +172,35 @@ function DetailsStep({policyID}: DetailsStepProps) { title={translate('workspace.companyCards.addCardFeed')} onBackButtonPress={handleBackButtonPress} /> - - + {!!feedProvider && !isStripeFeedProvider ? translate(`workspace.companyCards.addNewCard.feedDetails.${feedProvider}.title`) : ''} - - {renderInputs()} - {!!feedProvider && !isStripeFeedProvider && ( - - - - {translate(`workspace.companyCards.addNewCard.feedDetails.${feedProvider}.helpLabel`)} - - - )} - - + {renderInputs()} + {!!feedProvider && !isStripeFeedProvider && ( + + + + {translate(`workspace.companyCards.addNewCard.feedDetails.${feedProvider}.helpLabel`)} + + + )} + ); } From 4a6b0a2866aed53afd78faf4618419a14b72b0a6 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 12 Nov 2024 23:52:06 +0800 Subject: [PATCH 2/2] prettier --- src/pages/workspace/companyCards/addNew/DetailsStep.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/workspace/companyCards/addNew/DetailsStep.tsx b/src/pages/workspace/companyCards/addNew/DetailsStep.tsx index 88395e27f6a7..0064303fed7a 100644 --- a/src/pages/workspace/companyCards/addNew/DetailsStep.tsx +++ b/src/pages/workspace/companyCards/addNew/DetailsStep.tsx @@ -8,7 +8,6 @@ import HeaderWithBackButton from '@components/HeaderWithBackButton'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import ScreenWrapper from '@components/ScreenWrapper'; -import ScrollView from '@components/ScrollView'; import Text from '@components/Text'; import TextInput from '@components/TextInput'; import TextLink from '@components/TextLink';