@@ -4,20 +4,24 @@ import {View} from 'react-native';
44import Button from '@components/Button' ;
55import SafariFormWrapper from '@components/Form/SafariFormWrapper' ;
66import FormHelpMessage from '@components/FormHelpMessage' ;
7+ import Icon from '@components/Icon' ;
78import type { MagicCodeInputHandle } from '@components/MagicCodeInput' ;
89import MagicCodeInput from '@components/MagicCodeInput' ;
910import PressableWithFeedback from '@components/Pressable/PressableWithFeedback' ;
11+ import RenderHTML from '@components/RenderHTML' ;
1012import Text from '@components/Text' ;
1113import TextInput from '@components/TextInput' ;
1214import ValidateCodeCountdown from '@components/ValidateCodeCountdown' ;
1315import type { ValidateCodeCountdownHandle } from '@components/ValidateCodeCountdown/types' ;
1416import type { WithToggleVisibilityViewProps } from '@components/withToggleVisibilityView' ;
1517import withToggleVisibilityView from '@components/withToggleVisibilityView' ;
18+ import { useMemoizedLazyExpensifyIcons } from '@hooks/useLazyAsset' ;
1619import useLocalize from '@hooks/useLocalize' ;
1720import useNetwork from '@hooks/useNetwork' ;
1821import useOnyx from '@hooks/useOnyx' ;
1922import usePrevious from '@hooks/usePrevious' ;
2023import useStyleUtils from '@hooks/useStyleUtils' ;
24+ import useTheme from '@hooks/useTheme' ;
2125import useThemeStyles from '@hooks/useThemeStyles' ;
2226import AccountUtils from '@libs/AccountUtils' ;
2327import canFocusInputOnScreenFocus from '@libs/canFocusInputOnScreenFocus' ;
@@ -63,6 +67,8 @@ function BaseValidateCodeForm({autoComplete, isUsingRecoveryCode, setIsUsingReco
6367 const [ needToClearError , setNeedToClearError ] = useState < boolean > ( ! ! account ?. errors ) ;
6468 const [ isCountdownRunning , setIsCountdownRunning ] = useState ( true ) ;
6569 const StyleUtils = useStyleUtils ( ) ;
70+ const theme = useTheme ( ) ;
71+ const expensifyIcons = useMemoizedLazyExpensifyIcons ( [ 'Exclamation' ] ) ;
6672
6773 const prevRequiresTwoFactorAuth = usePrevious ( account ?. requiresTwoFactorAuth ) ;
6874 const prevValidateCode = usePrevious ( credentials ?. validateCode ) ;
@@ -403,6 +409,18 @@ function BaseValidateCodeForm({autoComplete, isUsingRecoveryCode, setIsUsingReco
403409 </ PressableWithFeedback >
404410 ) }
405411 </ View >
412+ < View style = { [ styles . mt5 , styles . flexRow , styles . alignItemsCenter ] } >
413+ < View style = { [ styles . mr3 ] } >
414+ < Icon
415+ src = { expensifyIcons . Exclamation }
416+ fill = { theme . icon }
417+ medium
418+ />
419+ </ View >
420+ < View style = { styles . flex1 } >
421+ < RenderHTML html = { translate ( 'validateCodeForm.avoidScamsMessage' ) } />
422+ </ View >
423+ </ View >
406424 </ View >
407425 ) }
408426 < View >
0 commit comments