Skip to content

Commit

Permalink
fix more lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Nov 3, 2024
1 parent c4c676c commit 1fb84d7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libs/API/parameters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,4 @@ export type {default as UpdateQuickbooksDesktopExpensesExportDestinationTypePara
export type {default as ValidateUserAndGetAccessiblePoliciesParams} from './ValidateUserAndGetAccessiblePoliciesParams';
export type {default as UpdateQuickbooksDesktopCompanyCardExpenseAccountTypeParams} from './UpdateQuickbooksDesktopCompanyCardExpenseAccountTypeParams';
export type {default as TogglePlatformMuteParams} from './TogglePlatformMuteParams';
export type {default as JoinAccessiblePolicyParams} from './JoinAccessiblePolicyParams';
2 changes: 2 additions & 0 deletions src/libs/API/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@ type WriteCommandParameters = {
[WRITE_COMMANDS.SET_INVOICING_TRANSFER_BANK_ACCOUNT]: Parameters.SetInvoicingTransferBankAccountParams;
[WRITE_COMMANDS.UPDATE_INVOICE_COMPANY_NAME]: Parameters.UpdateInvoiceCompanyNameParams;
[WRITE_COMMANDS.UPDATE_INVOICE_COMPANY_WEBSITE]: Parameters.UpdateInvoiceCompanyWebsiteParams;

[WRITE_COMMANDS.JOIN_ACCESSIBLE_POLICY]: Parameters.JoinAccessiblePolicyParams;
};

const READ_COMMANDS = {
Expand Down
2 changes: 2 additions & 0 deletions src/libs/NavigationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const ONBOARDING_SCREEN_NAMES = new Set([
SCREENS.ONBOARDING_MODAL.ONBOARDING,
SCREENS.ONBOARDING.EMPLOYEES,
SCREENS.ONBOARDING.ACCOUNTING,
SCREENS.ONBOARDING.PRIVATE_DOMAIN,
SCREENS.ONBOARDING.WORKSPACES,
]);

const removePolicyIDParamFromState = (state: State<RootStackParamList>) => {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ function updateWorkspaceMembersRole(policyID: string, accountIDs: number[], newR

function requestWorkspaceOwnerChange(policyID: string) {
const policy = getPolicy(policyID);
const ownershipChecks = {...policyOwnershipChecks?.[policyID]} ?? {};
const ownershipChecks = {...policyOwnershipChecks?.[policyID]};

const changeOwnerErrors = Object.keys(policy?.errorFields?.changeOwner ?? {});

Expand Down
3 changes: 3 additions & 0 deletions src/pages/OnboardingWorkspaces/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type {RouteProp} from '@react-navigation/native';
import type {StackScreenProps} from '@react-navigation/stack';
import type {OnboardingModalNavigatorParamList} from '@libs/Navigation/types';
import type SCREENS from '@src/SCREENS';
Expand All @@ -7,6 +8,8 @@ type OnboardingWorkspacesProps = StackScreenProps<OnboardingModalNavigatorParamL
type BaseOnboardingWorkspacesProps = {
/* Whether to use native styles tailored for native devices */
shouldUseNativeStyles: boolean;

route: RouteProp<OnboardingModalNavigatorParamList, typeof SCREENS.ONBOARDING.WORKSPACES>;
};

export type {OnboardingWorkspacesProps, BaseOnboardingWorkspacesProps};

0 comments on commit 1fb84d7

Please sign in to comment.