-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Workspace Switcher and Get Assistance Button issues #58000
Changes from 2 commits
f96aa10
c5f180d
fddf604
9d84000
73d42b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
import useSubStep from '@hooks/useSubStep'; | ||
import type {SubStepProps} from '@hooks/useSubStep/types'; | ||
import {parsePhoneNumber} from '@libs/PhoneNumber'; | ||
import * as ValidationUtils from '@libs/ValidationUtils'; | ||
Check failure on line 10 in src/pages/ReimbursementAccount/USD/BusinessInfo/BusinessInfo.tsx
|
||
import getInitialSubStepForBusinessInfo from '@pages/ReimbursementAccount/USD/utils/getInitialSubStepForBusinessInfo'; | ||
import getSubStepValues from '@pages/ReimbursementAccount/utils/getSubStepValues'; | ||
import {updateCompanyInformationForBankAccount} from '@userActions/BankAccounts'; | ||
|
@@ -56,14 +56,14 @@ | |
[reimbursementAccount, reimbursementAccountDraft], | ||
); | ||
|
||
const policyID = reimbursementAccount?.achData?.policyID ?? '-1'; | ||
Check failure on line 59 in src/pages/ReimbursementAccount/USD/BusinessInfo/BusinessInfo.tsx
|
||
const values = useMemo(() => getSubStepValues(BUSINESS_INFO_STEP_KEYS, reimbursementAccountDraft, reimbursementAccount), [reimbursementAccount, reimbursementAccountDraft]); | ||
|
||
const submit = useCallback( | ||
(isConfirmPage: boolean) => { | ||
const companyWebsite = Str.sanitizeURL(values.website, CONST.COMPANY_WEBSITE_DEFAULT_SCHEME); | ||
updateCompanyInformationForBankAccount( | ||
Number(reimbursementAccount?.achData?.bankAccountID ?? '-1'), | ||
Check failure on line 66 in src/pages/ReimbursementAccount/USD/BusinessInfo/BusinessInfo.tsx
|
||
{ | ||
...values, | ||
...getBankAccountFields(['routingNumber', 'accountNumber', 'bankName', 'plaidAccountID', 'plaidAccessToken', 'isSavings']), | ||
|
@@ -109,7 +109,6 @@ | |
shouldEnablePickerAvoiding={false} | ||
shouldEnableMaxHeight | ||
headerTitle={translate('businessInfoStep.businessInfo')} | ||
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_BANK_ACCOUNT} | ||
handleBackButtonPress={handleBackButtonPress} | ||
startStepIndex={3} | ||
stepNames={CONST.BANK_ACCOUNT.STEP_NAMES} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,17 @@ | |
import useLocalize from '@hooks/useLocalize'; | ||
import useNetwork from '@hooks/useNetwork'; | ||
import useThemeStyles from '@hooks/useThemeStyles'; | ||
import * as ReportActions from '@libs/actions/Report'; | ||
Check failure on line 17 in src/pages/workspace/WorkspaceInvitePage.tsx
|
||
import {READ_COMMANDS} from '@libs/API/types'; | ||
import * as DeviceCapabilities from '@libs/DeviceCapabilities'; | ||
Check failure on line 19 in src/pages/workspace/WorkspaceInvitePage.tsx
|
||
import HttpUtils from '@libs/HttpUtils'; | ||
import * as LoginUtils from '@libs/LoginUtils'; | ||
Check failure on line 21 in src/pages/workspace/WorkspaceInvitePage.tsx
|
||
import Navigation from '@libs/Navigation/Navigation'; | ||
import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types'; | ||
import * as OptionsListUtils from '@libs/OptionsListUtils'; | ||
Check failure on line 24 in src/pages/workspace/WorkspaceInvitePage.tsx
|
||
import type {MemberForList} from '@libs/OptionsListUtils'; | ||
import * as PhoneNumber from '@libs/PhoneNumber'; | ||
Check failure on line 26 in src/pages/workspace/WorkspaceInvitePage.tsx
|
||
import * as PolicyUtils from '@libs/PolicyUtils'; | ||
Check failure on line 27 in src/pages/workspace/WorkspaceInvitePage.tsx
|
||
import type {OptionData} from '@libs/ReportUtils'; | ||
import type {SettingsNavigatorParamList} from '@navigation/types'; | ||
import * as Member from '@userActions/Policy/Member'; | ||
|
@@ -313,8 +313,6 @@ | |
<HeaderWithBackButton | ||
title={translate('workspace.invite.invitePeople')} | ||
subtitle={policyName} | ||
shouldShowGetAssistanceButton | ||
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_MEMBERS} | ||
onBackButtonPress={() => { | ||
Policy.clearErrors(route.params.policyID); | ||
Navigation.goBack(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: Eslint is failing in this file