diff --git a/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js b/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js index 6b91096706de..ca80c5abd30c 100644 --- a/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js +++ b/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js @@ -16,6 +16,10 @@ import Button from '../../../../../components/Button'; import DotIndicatorMessage from '../../../../../components/DotIndicatorMessage'; import * as Session from '../../../../../libs/actions/Session'; import Text from '../../../../../components/Text'; +import {withNetwork} from '../../../../../components/OnyxProvider'; +import PressableWithFeedback from '../../../../../components/Pressable/PressableWithFeedback'; +import themeColors from '../../../../../styles/themes/default'; +import * as StyleUtils from '../../../../../styles/StyleUtils'; const propTypes = { ...withLocalizePropTypes, @@ -138,12 +142,18 @@ function BaseValidateCodeForm(props) { onClose={() => User.clearContactMethodErrors(props.contactMethod, 'validateCodeSent')} > - - {props.translate('contacts.resendMagicCode')} - + {props.translate('contacts.resendMagicCode')} + {props.hasMagicCodeBeenSent && ( User.clearContactMethodErrors(props.contactMethod, 'validateLogin')} >