Skip to content

Commit

Permalink
remove back button from onboarding work
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiceli committed Sep 27, 2024
1 parent cd773f1 commit 0db9204
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/OnboardingWork/BaseOnboardingWork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function BaseOnboardingWork({shouldUseNativeStyles, onboardingPurposeSelected, o
const {onboardingIsMediumOrLargerScreenWidth} = useResponsiveLayout();
const {inputCallbackRef} = useAutoFocusInput();

const [onboardingValues] = useOnyx(ONYXKEYS.NVP_ONBOARDING);

Check failure on line 33 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find name 'useOnyx'.

Check failure on line 33 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Unsafe assignment of an error typed value

Check failure on line 33 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Unsafe call of an `any` typed value

Check failure on line 33 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unsafe assignment of an error typed value

Check failure on line 33 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unsafe call of an `any` typed value

const completeEngagement = useCallback(
(values: FormOnyxValues<'onboardingWorkForm'>) => {
if (!onboardingPurposeSelected) {
Expand Down Expand Up @@ -73,7 +75,7 @@ function BaseOnboardingWork({shouldUseNativeStyles, onboardingPurposeSelected, o
style={[styles.defaultModalContainer, shouldUseNativeStyles && styles.pt8]}
>
<HeaderWithBackButton
shouldShowBackButton
shouldShowBackButton={onboardingValues && 'signupQualifier' in onboardingValues && onboardingValues.signupQualifier !== CONST.ONBOARDING_SIGNUP_QUALIFIERS.VSB}

Check failure on line 78 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Unsafe assignment of an `any` value

Check failure on line 78 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Unsafe member access .signupQualifier on an `any` value

Check failure on line 78 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unsafe assignment of an `any` value

Check failure on line 78 in src/pages/OnboardingWork/BaseOnboardingWork.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unsafe member access .signupQualifier on an `any` value
progressBarPercentage={onboardingPurposeSelected === CONST.ONBOARDING_CHOICES.MANAGE_TEAM ? 50 : 75}
onBackButtonPress={OnboardingFlow.goBack}
/>
Expand Down

0 comments on commit 0db9204

Please sign in to comment.