Skip to content

Commit

Permalink
Merge pull request #46803 from nyomanjyotisa/issue-46188
Browse files Browse the repository at this point in the history
set useAutoFocusInput ref to the BaseOnboardingWork input wrapper
  • Loading branch information
NikkiWines authored Aug 5, 2024
2 parents 77edafd + 8f67cee commit e909496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/OnboardingWork/BaseOnboardingWork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import OfflineIndicator from '@components/OfflineIndicator';
import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import TextInput from '@components/TextInput';
import useAutoFocusInput from '@hooks/useAutoFocusInput';
import useLocalize from '@hooks/useLocalize';
import useOnboardingLayout from '@hooks/useOnboardingLayout';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
Expand All @@ -31,6 +32,7 @@ function BaseOnboardingWork({shouldUseNativeStyles, onboardingPurposeSelected, o
const {translate} = useLocalize();
const {shouldUseNarrowLayout} = useResponsiveLayout();
const {isMediumOrLargerScreenWidth} = useOnboardingLayout();
const {inputCallbackRef} = useAutoFocusInput();

const completeEngagement = useCallback(
(values: FormOnyxValues<'onboardingWorkForm'>) => {
Expand Down Expand Up @@ -100,6 +102,7 @@ function BaseOnboardingWork({shouldUseNativeStyles, onboardingPurposeSelected, o
<View style={styles.mb4}>
<InputWrapper
InputComponent={TextInput}
ref={inputCallbackRef}
inputID={INPUT_IDS.WORK}
name="fwork"
label={translate('common.businessName')}
Expand Down

0 comments on commit e909496

Please sign in to comment.