File tree Expand file tree Collapse file tree
ValidateCodeActionModal/ValidateCodeForm
pages/OnboardingWorkEmail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function FormAlertWithSubmitButton({
104104 shouldPreventDefaultFocusOnPress = false ,
105105} : FormAlertWithSubmitButtonProps ) {
106106 const styles = useThemeStyles ( ) ;
107- const style = [ footerContent && addButtonBottomPadding ? styles . mb3 : { } , buttonStyles ] ;
107+ const style = [ ! shouldRenderFooterAboveSubmit && footerContent && addButtonBottomPadding ? styles . mb3 : { } , buttonStyles ] ;
108108
109109 // Disable pressOnEnter for Android Native to avoid issues with the Samsung keyboard,
110110 // where pressing Enter saves the form instead of adding a new line in multiline input.
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ function BaseValidateCodeForm({
332332 isDisabled = { isOffline }
333333 text = { submitButtonText ?? translate ( 'common.verify' ) }
334334 onPress = { validateAndSubmitForm }
335- style = { [ styles . mt4 ] }
335+ style = { [ shouldShowSkipButton ? styles . mt3 : styles . mt4 ] }
336336 success
337337 large
338338 // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
Original file line number Diff line number Diff line change @@ -158,25 +158,24 @@ function BaseOnboardingWorkEmail({shouldUseNativeStyles}: BaseOnboardingWorkEmai
158158 shouldValidateOnChange = { shouldValidateOnChange }
159159 shouldTrimValues = { false }
160160 footerContent = {
161- < View style = { styles . mb2 } >
162- < OfflineWithFeedback
163- shouldDisplayErrorAbove
164- errors = { onboardingErrorMessage ? { addWorkEmailError : onboardingErrorMessage } : undefined }
165- errorRowStyles = { [ styles . mt2 , styles . textWrap ] }
166- onClose = { ( ) => setOnboardingErrorMessage ( '' ) }
167- >
168- < Button
169- large
170- text = { translate ( 'common.skip' ) }
171- testID = "onboardingPrivateEmailSkipButton"
172- onPress = { ( ) => {
173- setOnboardingErrorMessage ( '' ) ;
174-
175- setOnboardingMergeAccountStepValue ( true , true ) ;
176- } }
177- />
178- </ OfflineWithFeedback >
179- </ View >
161+ < OfflineWithFeedback
162+ shouldDisplayErrorAbove
163+ style = { styles . mb3 }
164+ errors = { onboardingErrorMessage ? { addWorkEmailError : onboardingErrorMessage } : undefined }
165+ errorRowStyles = { [ styles . mt2 , styles . textWrap ] }
166+ onClose = { ( ) => setOnboardingErrorMessage ( '' ) }
167+ >
168+ < Button
169+ large
170+ text = { translate ( 'common.skip' ) }
171+ testID = "onboardingPrivateEmailSkipButton"
172+ onPress = { ( ) => {
173+ setOnboardingErrorMessage ( '' ) ;
174+
175+ setOnboardingMergeAccountStepValue ( true , true ) ;
176+ } }
177+ />
178+ </ OfflineWithFeedback >
180179 }
181180 shouldRenderFooterAboveSubmit
182181 shouldHideFixErrorsAlert
You can’t perform that action at this time.
0 commit comments