From 0d5c5e37960bfda183d35d6439f8ff85c954b2c6 Mon Sep 17 00:00:00 2001 From: dominictb Date: Mon, 12 May 2025 11:03:12 +0700 Subject: [PATCH 1/6] fix spellings in src/pages --- src/CONST.ts | 6 +++--- src/components/DatePicker/CalendarPicker/index.tsx | 6 +++--- src/components/ProductTrainingContext/TOOLTIPS.ts | 8 ++++---- .../Search/SearchPageHeader/SearchStatusBar.tsx | 2 +- src/hooks/useSearchResults.ts | 2 +- src/pages/Debug/DebugDetails.tsx | 2 +- .../Transaction/DebugTransactionViolations.tsx | 2 +- .../BaseOnboardingAccounting.tsx | 2 +- .../BaseOnboardingPersonalDetails.tsx | 10 +++++----- .../OnboardingPurpose/BaseOnboardingPurpose.tsx | 6 +++--- .../Confirmation.tsx | 4 ++-- .../NonUSD/SignerInfo/subSteps/Confirmation.tsx | 2 +- .../NonUSD/SignerInfo/subSteps/UploadDocuments.tsx | 12 ++++++------ .../utils/getNeededDocumentsStatusForSignerInfo.ts | 8 ++++---- .../NonUSD/utils/getValuesForBeneficialOwner.ts | 8 ++++---- src/pages/ReportParticipantsPage.tsx | 8 ++++---- .../ScheduleCall/ScheduleCallConfirmationPage.tsx | 4 ++-- src/pages/ScheduleCall/ScheduleCallPage.tsx | 2 +- .../SearchFiltersTaxRatePage.tsx | 2 +- src/pages/Search/SearchTypeMenu.tsx | 2 +- src/pages/Share/ShareRootPage.tsx | 6 +++--- src/pages/Share/ShareTab.tsx | 4 ++-- src/pages/TeachersUnite/KnowATeacherPage.tsx | 4 ++-- src/pages/TransactionDuplicate/Confirmation.tsx | 2 +- src/pages/TransactionDuplicate/ReviewFields.tsx | 2 +- src/pages/home/ReportScreen.tsx | 6 +++--- .../ContextMenu/BaseReportActionContextMenu.tsx | 6 +++--- .../home/report/ContextMenu/ContextMenuActions.tsx | 2 +- .../ContextMenu/PopoverReportActionContextMenu.tsx | 8 ++++---- .../report/ContextMenu/ReportActionContextMenu.ts | 4 ++-- src/pages/home/report/LinkPreviewer.tsx | 4 ++-- src/pages/home/report/PureReportActionItem.tsx | 2 +- .../ReportActionCompose/ReportActionCompose.tsx | 8 ++++---- src/pages/home/report/ReportActionItemSingle.tsx | 2 +- src/pages/home/report/ReportActionItemThread.tsx | 2 +- src/pages/home/report/ReportActionsList.tsx | 6 +++--- src/pages/home/report/ReportFooter.tsx | 2 +- .../iou/request/IOURequestRedirectToStartPage.tsx | 2 +- .../iou/request/MoneyRequestAccountantSelector.tsx | 4 ++-- .../request/step/IOURequestStepConfirmation.tsx | 2 +- src/pages/settings/InitialSettingsPage.tsx | 10 +++++----- .../Profile/Contacts/NewContactMethodPage.tsx | 10 +++++----- .../Profile/PersonalDetails/LegalNamePage.tsx | 4 ++-- .../Profile/PersonalDetails/PhoneNumberPage.tsx | 2 +- .../Security/TwoFactorAuth/SuccessPage.tsx | 2 +- src/pages/settings/Wallet/ExpensifyCardPage.tsx | 10 +++++----- src/pages/settings/Wallet/PaymentMethodList.tsx | 4 ++-- src/pages/signin/SignInModal.tsx | 8 ++++---- src/pages/signin/SignInPage.tsx | 2 +- src/pages/signin/SignInPageLayout/Footer.tsx | 2 +- .../signInPageStyles/index.native.ts | 2 +- .../ValidateCodeForm/BaseValidateCodeForm.tsx | 2 +- src/pages/tasks/NewTaskPage.tsx | 2 +- src/pages/workspace/WorkspaceInitialPage.tsx | 2 +- src/pages/workspace/WorkspaceMoreFeaturesPage.tsx | 10 +++++----- src/pages/workspace/WorkspacePageWithSections.tsx | 2 +- src/pages/workspace/WorkspacesListPage.tsx | 2 +- src/pages/workspace/WorkspacesListRow.tsx | 2 +- .../intacct/import/SageIntacctImportPage.tsx | 4 ++-- src/pages/workspace/accounting/netsuite/types.ts | 4 ++-- src/pages/workspace/tags/WorkspaceEditTagsPage.tsx | 14 +++++++------- src/pages/workspace/taxes/ValuePage.tsx | 2 +- .../workspace/taxes/WorkspaceCreateTaxPage.tsx | 2 +- src/types/onyx/Account.ts | 2 +- src/types/onyx/DismissedProductTraining.ts | 4 ++-- src/types/onyx/ScheduleCallDraft.ts | 2 +- 66 files changed, 144 insertions(+), 144 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index f4b2e09bdafb..388c639cd6fe 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -3546,7 +3546,7 @@ const CONST = { * Group 2: Optional email group between \s+....\s* start rule with @+valid email or short mention * Group 3: Title is remaining characters */ - TASK_TITLE_WITH_OPTONAL_SHORT_MENTION: `^\\[\\]\\s+(?:@(?:${EMAIL_WITH_OPTIONAL_DOMAIN.source}))?\\s*([\\s\\S]*)`, + TASK_TITLE_WITH_OPTIONAL_SHORT_MENTION: `^\\[\\]\\s+(?:@(?:${EMAIL_WITH_OPTIONAL_DOMAIN.source}))?\\s*([\\s\\S]*)`, }, PRONOUNS: { @@ -3708,7 +3708,7 @@ const CONST = { SPEND_MANAGEMENT_URL: `${USE_EXPENSIFY_URL}/spend-management`, EXPENSE_REPORTS_URL: `${USE_EXPENSIFY_URL}/expense-reports`, COMPANY_CARD_URL: `${USE_EXPENSIFY_URL}/company-credit-card`, - RECIEPT_SCANNING_URL: `${USE_EXPENSIFY_URL}/receipt-scanning-app`, + RECEIPT_SCANNING_URL: `${USE_EXPENSIFY_URL}/receipt-scanning-app`, BILL_PAY_URL: `${USE_EXPENSIFY_URL}/bills`, INVOICES_URL: `${USE_EXPENSIFY_URL}/invoices`, PAYROLL_URL: `${USE_EXPENSIFY_URL}/payroll`, @@ -7012,7 +7012,7 @@ const CONST = { SCAN_TEST_TOOLTIP: 'scanTestTooltip', SCAN_TEST_TOOLTIP_MANAGER: 'scanTestTooltipManager', SCAN_TEST_CONFIRMATION: 'scanTestConfirmation', - OUTSANDING_FILTER: 'outstandingFilter', + OUTSTANDING_FILTER: 'outstandingFilter', SETTINGS_TAB: 'settingsTab', WORKSPACES_SETTINGS: 'workspacesSettings', GBR_RBR_CHAT: 'chatGBRRBR', diff --git a/src/components/DatePicker/CalendarPicker/index.tsx b/src/components/DatePicker/CalendarPicker/index.tsx index 0e1ae279bcbf..f9b6c4917c20 100644 --- a/src/components/DatePicker/CalendarPicker/index.tsx +++ b/src/components/DatePicker/CalendarPicker/index.tsx @@ -28,7 +28,7 @@ type CalendarPickerProps = { maxDate?: Date; /** Restrict selection to only specific dates */ - selectedableDates?: string[]; + selectableDates?: string[]; /** Day component to render for dates */ DayComponent?: typeof Day; @@ -55,7 +55,7 @@ function CalendarPicker({ maxDate = setYear(new Date(), CONST.CALENDAR_PICKER.MAX_YEAR), onSelected, DayComponent = Day, - selectedableDates, + selectableDates, }: CalendarPickerProps) { // eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth const {isSmallScreenWidth} = useResponsiveLayout(); @@ -257,7 +257,7 @@ function CalendarPicker({ const currentDate = new Date(currentYearView, currentMonthView, day); const isBeforeMinDate = currentDate < startOfDay(new Date(minDate)); const isAfterMaxDate = currentDate > startOfDay(new Date(maxDate)); - const isSelectable = selectedableDates ? selectedableDates?.some((date) => isSameDay(parseISO(date), currentDate)) : true; + const isSelectable = selectableDates ? selectableDates?.some((date) => isSameDay(parseISO(date), currentDate)) : true; const isDisabled = !day || isBeforeMinDate || isAfterMaxDate || !isSelectable; const isSelected = !!day && isSameDay(parseISO(value.toString()), new Date(currentYearView, currentMonthView, day)); const handleOnPress = () => { diff --git a/src/components/ProductTrainingContext/TOOLTIPS.ts b/src/components/ProductTrainingContext/TOOLTIPS.ts index 5e4811a152b5..332a489728da 100644 --- a/src/components/ProductTrainingContext/TOOLTIPS.ts +++ b/src/components/ProductTrainingContext/TOOLTIPS.ts @@ -12,7 +12,7 @@ const { SCAN_TEST_TOOLTIP, SCAN_TEST_TOOLTIP_MANAGER, SCAN_TEST_CONFIRMATION, - OUTSANDING_FILTER, + OUTSTANDING_FILTER, SETTINGS_TAB, WORKSPACES_SETTINGS, GBR_RBR_CHAT, @@ -163,13 +163,13 @@ const TOOLTIPS: Record = { priority: 1100, shouldShow: () => true, }, - [OUTSANDING_FILTER]: { + [OUTSTANDING_FILTER]: { content: [ {text: 'productTrainingTooltip.outstandingFilter.part1', isBold: false}, {text: 'productTrainingTooltip.outstandingFilter.part2', isBold: true}, ], - onHideTooltip: () => dismissProductTraining(OUTSANDING_FILTER), - name: OUTSANDING_FILTER, + onHideTooltip: () => dismissProductTraining(OUTSTANDING_FILTER), + name: OUTSTANDING_FILTER, priority: 1925, shouldShow: ({isUserPolicyAdmin}) => isUserPolicyAdmin, }, diff --git a/src/components/Search/SearchPageHeader/SearchStatusBar.tsx b/src/components/Search/SearchPageHeader/SearchStatusBar.tsx index 95b07cf17505..c42f5ae3492a 100644 --- a/src/components/Search/SearchPageHeader/SearchStatusBar.tsx +++ b/src/components/Search/SearchPageHeader/SearchStatusBar.tsx @@ -270,7 +270,7 @@ function SearchStatusBar({queryJSON, onStatusChange, headerButtonsOptions}: Sear ? queryJSON.status.includes(CONST.SEARCH.STATUS.EXPENSE.OUTSTANDING) : queryJSON.status === CONST.SEARCH.STATUS.EXPENSE.OUTSTANDING; const {renderProductTrainingTooltip, shouldShowProductTrainingTooltip, hideProductTrainingTooltip} = useProductTrainingContext( - CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.OUTSANDING_FILTER, + CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.OUTSTANDING_FILTER, isScreenFocused && !isOutstandingStatusActive && queryJSON.type === CONST.SEARCH.DATA_TYPES.EXPENSE, ); // Controls the visibility of the educational tooltip based on user scrolling. diff --git a/src/hooks/useSearchResults.ts b/src/hooks/useSearchResults.ts index 8798f2562abb..befba205e219 100644 --- a/src/hooks/useSearchResults.ts +++ b/src/hooks/useSearchResults.ts @@ -5,7 +5,7 @@ import usePrevious from './usePrevious'; /** * This hook filters (and optionally sorts) a dataset based on a search parameter. * It utilizes `useTransition` to allow the searchQuery to change rapidly, while more expensive renders that occur using - * the result of the filtering and sorting are deprioritized, allowing them to happen in the background. + * the result of the filtering and sorting are de-prioritized, allowing them to happen in the background. */ function useSearchResults(data: TValue[], filterData: (datum: TValue, searchInput: string) => boolean, sortData: (data: TValue[]) => TValue[] = (d) => d) { const [inputValue, setInputValue] = useState(''); diff --git a/src/pages/Debug/DebugDetails.tsx b/src/pages/Debug/DebugDetails.tsx index d67a0a8f47f6..f290d6d4c79f 100644 --- a/src/pages/Debug/DebugDetails.tsx +++ b/src/pages/Debug/DebugDetails.tsx @@ -29,7 +29,7 @@ type DebugDetailsProps = { /** Type of debug form - required to access constant field options for a specific form */ formType: ValueOf; - /** The report or report action data to be displayed and editted. */ + /** The report or report action data to be displayed and edited. */ data: OnyxEntry | OnyxEntry | OnyxEntry | OnyxEntry; /** Whether the provided policy has enabled tags */ diff --git a/src/pages/Debug/Transaction/DebugTransactionViolations.tsx b/src/pages/Debug/Transaction/DebugTransactionViolations.tsx index e3d3f518f88a..9449378b6a63 100644 --- a/src/pages/Debug/Transaction/DebugTransactionViolations.tsx +++ b/src/pages/Debug/Transaction/DebugTransactionViolations.tsx @@ -11,7 +11,7 @@ import ROUTES from '@src/ROUTES'; import type {TransactionViolation} from '@src/types/onyx'; type DebugTransactionViolationsProps = { - /** The transactionID we are gettings the transaction violations for */ + /** The transactionID we are getting the transaction violations for */ transactionID: string; }; diff --git a/src/pages/OnboardingAccounting/BaseOnboardingAccounting.tsx b/src/pages/OnboardingAccounting/BaseOnboardingAccounting.tsx index 25bd0b3a31c6..7f4626969b57 100644 --- a/src/pages/OnboardingAccounting/BaseOnboardingAccounting.tsx +++ b/src/pages/OnboardingAccounting/BaseOnboardingAccounting.tsx @@ -70,7 +70,7 @@ function BaseOnboardingAccounting({shouldUseNativeStyles}: BaseOnboardingAccount const isLoading = onboarding?.isLoading; const prevIsLoading = usePrevious(isLoading); - // Set onboardingPolicyID and onboardingAdminsChatReportID if a workspace is created by the backend for OD signups + // Set onboardingPolicyID and onboardingAdminsChatReportID if a workspace is created by the backend for OD signup useEffect(() => { if (!paidGroupPolicy || onboardingPolicyID) { return; diff --git a/src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx b/src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx index baa323f6b233..e5b838b9baf0 100644 --- a/src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx +++ b/src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx @@ -51,7 +51,7 @@ function BaseOnboardingPersonalDetails({currentUserPersonalDetails, shouldUseNat const {canUseDefaultRooms, canUsePrivateDomainOnboarding} = usePermissions(); const {activeWorkspaceID} = useActiveWorkspace(); - const isPrivateDomainAndHasAccesiblePolicies = canUsePrivateDomainOnboarding && !account?.isFromPublicDomain && !!account?.hasAccessibleDomainPolicies; + const isPrivateDomainAndHasAccessiblePolicies = canUsePrivateDomainOnboarding && !account?.isFromPublicDomain && !!account?.hasAccessibleDomainPolicies; const isValidated = isCurrentUserValidated(loginList); useEffect(() => { @@ -90,7 +90,7 @@ function BaseOnboardingPersonalDetails({currentUserPersonalDetails, shouldUseNat clearPersonalDetailsDraft(); setPersonalDetails(firstName, lastName); - if (isPrivateDomainAndHasAccesiblePolicies && !onboardingPurposeSelected) { + if (isPrivateDomainAndHasAccessiblePolicies && !onboardingPurposeSelected) { const nextRoute = isValidated ? ROUTES.ONBOARDING_WORKSPACES : ROUTES.ONBOARDING_PRIVATE_DOMAIN; Navigation.navigate(nextRoute.getRoute(route.params?.backTo)); return; @@ -98,7 +98,7 @@ function BaseOnboardingPersonalDetails({currentUserPersonalDetails, shouldUseNat completeOnboarding(firstName, lastName); }, - [isPrivateDomainAndHasAccesiblePolicies, onboardingPurposeSelected, isValidated, route.params?.backTo, completeOnboarding], + [isPrivateDomainAndHasAccessiblePolicies, onboardingPurposeSelected, isValidated, route.params?.backTo, completeOnboarding], ); const validate = (values: FormOnyxValues<'onboardingPersonalDetailsForm'>) => { @@ -142,8 +142,8 @@ function BaseOnboardingPersonalDetails({currentUserPersonalDetails, shouldUseNat style={[styles.defaultModalContainer, shouldUseNativeStyles && styles.pt8]} > diff --git a/src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps/Confirmation.tsx b/src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps/Confirmation.tsx index 696ebe4fc489..a672adcee657 100644 --- a/src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps/Confirmation.tsx +++ b/src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps/Confirmation.tsx @@ -111,7 +111,7 @@ function Confirmation({onNext, onMove, isEditing, ownerBeingModifiedID}: Confirm ...(isDocumentNeededStatus.isCodiceFiscaleNeeded ? [ { - title: values.codiceFisacle.map((file) => file.name).join(', '), + title: values.codiceFiscale.map((file) => file.name).join(', '), description: translate('ownershipInfoStep.codiceFiscale'), shouldShowRightIcon: true, onPress: () => { @@ -131,7 +131,7 @@ function Confirmation({onNext, onMove, isEditing, ownerBeingModifiedID}: Confirm translate, values.addressProof, values.city, - values.codiceFisacle, + values.codiceFiscale, values.copyOfID, values.dob, values.firstName, diff --git a/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/Confirmation.tsx b/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/Confirmation.tsx index d1d084c25565..6a8ee19deced 100644 --- a/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/Confirmation.tsx +++ b/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/Confirmation.tsx @@ -59,7 +59,7 @@ function Confirmation({onNext, onMove, isEditing}: ConfirmationProps) { }); } - if (isDocumentNeededStatus.isProofOfDirecorsNeeded && values.proofOfDirectors.length > 0) { + if (isDocumentNeededStatus.isProofOfDirectorsNeeded && values.proofOfDirectors.length > 0) { summaryItems.push({ title: values.proofOfDirectors.map((proof) => proof.name).join(', '), description: translate('signerInfoStep.proofOfDirectors'), diff --git a/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/UploadDocuments.tsx b/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/UploadDocuments.tsx index c02f3496353f..63fd6d617349 100644 --- a/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/UploadDocuments.tsx +++ b/src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/UploadDocuments.tsx @@ -126,9 +126,9 @@ function UploadDocuments({onNext, isEditing}: UploadDocumentsProps) { /> {translate('ownershipInfoStep.copyOfIDDescription')} {(isDocumentNeededStatus.isAddressProofNeeded || - isDocumentNeededStatus.isProofOfDirecorsNeeded || + isDocumentNeededStatus.isProofOfDirectorsNeeded || isDocumentNeededStatus.isCodiceFiscaleNeeded || - isDocumentNeededStatus.isPRDandFSGNeeded) && } + isDocumentNeededStatus.isPRDAndFSGNeeded) && } )} {isDocumentNeededStatus.isAddressProofNeeded && ( @@ -153,12 +153,12 @@ function UploadDocuments({onNext, isEditing}: UploadDocumentsProps) { fileLimit={1} /> {translate('ownershipInfoStep.proofOfAddressDescription')} - {(isDocumentNeededStatus.isProofOfDirecorsNeeded || isDocumentNeededStatus.isCodiceFiscaleNeeded || isDocumentNeededStatus.isPRDandFSGNeeded) && ( + {(isDocumentNeededStatus.isProofOfDirectorsNeeded || isDocumentNeededStatus.isCodiceFiscaleNeeded || isDocumentNeededStatus.isPRDAndFSGNeeded) && ( )} )} - {isDocumentNeededStatus.isProofOfDirecorsNeeded && ( + {isDocumentNeededStatus.isProofOfDirectorsNeeded && ( {translate('signerInfoStep.proofOfDirectors')} {translate('signerInfoStep.proofOfDirectorsDescription')} - {(isDocumentNeededStatus.isCodiceFiscaleNeeded || isDocumentNeededStatus.isPRDandFSGNeeded) && } + {(isDocumentNeededStatus.isCodiceFiscaleNeeded || isDocumentNeededStatus.isPRDAndFSGNeeded) && } )} {isDocumentNeededStatus.isCodiceFiscaleNeeded && ( @@ -205,7 +205,7 @@ function UploadDocuments({onNext, isEditing}: UploadDocumentsProps) { fileLimit={1} /> {translate('signerInfoStep.codiceFiscaleDescription')} - {isDocumentNeededStatus.isPRDandFSGNeeded && } + {isDocumentNeededStatus.isPRDAndFSGNeeded && } )} diff --git a/src/pages/ReimbursementAccount/NonUSD/utils/getNeededDocumentsStatusForSignerInfo.ts b/src/pages/ReimbursementAccount/NonUSD/utils/getNeededDocumentsStatusForSignerInfo.ts index 84426e15ee2c..2e9b419e8e97 100644 --- a/src/pages/ReimbursementAccount/NonUSD/utils/getNeededDocumentsStatusForSignerInfo.ts +++ b/src/pages/ReimbursementAccount/NonUSD/utils/getNeededDocumentsStatusForSignerInfo.ts @@ -1,20 +1,20 @@ import CONST from '@src/CONST'; type NeededDocumentsStatusForBeneficialOwner = { - isProofOfDirecorsNeeded: boolean; + isProofOfDirectorsNeeded: boolean; isCopyOfIDNeeded: boolean; isAddressProofNeeded: boolean; isCodiceFiscaleNeeded: boolean; - isPRDandFSGNeeded: boolean; + isPRDAndFSGNeeded: boolean; }; function getNeededDocumentsStatusForSignerInfo(workspaceCurrency: string, accountCountry: string): NeededDocumentsStatusForBeneficialOwner { return { - isProofOfDirecorsNeeded: accountCountry === CONST.COUNTRY.CA || accountCountry === CONST.COUNTRY.AU, + isProofOfDirectorsNeeded: accountCountry === CONST.COUNTRY.CA || accountCountry === CONST.COUNTRY.AU, isCopyOfIDNeeded: workspaceCurrency === CONST.CURRENCY.EUR || workspaceCurrency === CONST.CURRENCY.GBP || accountCountry === CONST.COUNTRY.AU, isAddressProofNeeded: workspaceCurrency === CONST.CURRENCY.EUR || accountCountry === CONST.COUNTRY.GB || accountCountry === CONST.COUNTRY.AU, isCodiceFiscaleNeeded: accountCountry === CONST.COUNTRY.IT, - isPRDandFSGNeeded: accountCountry === CONST.COUNTRY.AU, + isPRDAndFSGNeeded: accountCountry === CONST.COUNTRY.AU, }; } diff --git a/src/pages/ReimbursementAccount/NonUSD/utils/getValuesForBeneficialOwner.ts b/src/pages/ReimbursementAccount/NonUSD/utils/getValuesForBeneficialOwner.ts index 4d8cf52d0689..4483328718a8 100644 --- a/src/pages/ReimbursementAccount/NonUSD/utils/getValuesForBeneficialOwner.ts +++ b/src/pages/ReimbursementAccount/NonUSD/utils/getValuesForBeneficialOwner.ts @@ -17,7 +17,7 @@ type BeneficialOwnerValues = { proofOfOwnership: FileObject[]; copyOfID: FileObject[]; addressProof: FileObject[]; - codiceFisacle: FileObject[]; + codiceFiscale: FileObject[]; }; function getValuesForOwner(beneficialOwnerBeingModifiedID: string, reimbursementAccountDraft: OnyxEntry): BeneficialOwnerValues { @@ -36,7 +36,7 @@ function getValuesForOwner(beneficialOwnerBeingModifiedID: string, reimbursement proofOfOwnership: [], copyOfID: [], addressProof: [], - codiceFisacle: [], + codiceFiscale: [], }; } const beneficialOwnerPrefix = CONST.NON_USD_BANK_ACCOUNT.BENEFICIAL_OWNER_INFO_STEP.BENEFICIAL_OWNER_DATA.PREFIX; @@ -56,7 +56,7 @@ function getValuesForOwner(beneficialOwnerBeingModifiedID: string, reimbursement proofOfOwnership: `${beneficialOwnerPrefix}_${beneficialOwnerBeingModifiedID}_${beneficialOwnerInfoKey.PROOF_OF_OWNERSHIP}`, copyOfID: `${beneficialOwnerPrefix}_${beneficialOwnerBeingModifiedID}_${beneficialOwnerInfoKey.COPY_OF_ID}`, addressProof: `${beneficialOwnerPrefix}_${beneficialOwnerBeingModifiedID}_${beneficialOwnerInfoKey.ADDRESS_PROOF}`, - codiceFisacle: `${beneficialOwnerPrefix}_${beneficialOwnerBeingModifiedID}_${beneficialOwnerInfoKey.CODICE_FISCALE}`, + codiceFiscale: `${beneficialOwnerPrefix}_${beneficialOwnerBeingModifiedID}_${beneficialOwnerInfoKey.CODICE_FISCALE}`, } as const; return { @@ -73,7 +73,7 @@ function getValuesForOwner(beneficialOwnerBeingModifiedID: string, reimbursement proofOfOwnership: reimbursementAccountDraft[INPUT_KEYS.proofOfOwnership] ?? [], copyOfID: reimbursementAccountDraft[INPUT_KEYS.copyOfID] ?? [], addressProof: reimbursementAccountDraft[INPUT_KEYS.addressProof] ?? [], - codiceFisacle: reimbursementAccountDraft[INPUT_KEYS.codiceFisacle] ?? [], + codiceFiscale: reimbursementAccountDraft[INPUT_KEYS.codiceFiscale] ?? [], } as BeneficialOwnerValues; } diff --git a/src/pages/ReportParticipantsPage.tsx b/src/pages/ReportParticipantsPage.tsx index 8614def0465a..82333a6c1349 100755 --- a/src/pages/ReportParticipantsPage.tsx +++ b/src/pages/ReportParticipantsPage.tsx @@ -306,9 +306,9 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) { }, ]; - const isAtleastOneAdminSelected = selectedMembers.some((accountId) => report.participants?.[accountId]?.role === CONST.REPORT.ROLE.ADMIN); + const isAtLeastOneAdminSelected = selectedMembers.some((accountId) => report.participants?.[accountId]?.role === CONST.REPORT.ROLE.ADMIN); - if (isAtleastOneAdminSelected) { + if (isAtLeastOneAdminSelected) { options.push({ text: translate('workspace.people.makeMember'), value: CONST.POLICY.MEMBERS_BULK_ACTION_TYPES.MAKE_MEMBER, @@ -317,9 +317,9 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) { }); } - const isAtleastOneMemberSelected = selectedMembers.some((accountId) => report.participants?.[accountId]?.role === CONST.REPORT.ROLE.MEMBER); + const isAtLeastOneMemberSelected = selectedMembers.some((accountId) => report.participants?.[accountId]?.role === CONST.REPORT.ROLE.MEMBER); - if (isAtleastOneMemberSelected) { + if (isAtLeastOneMemberSelected) { options.push({ text: translate('workspace.people.makeAdmin'), value: CONST.POLICY.MEMBERS_BULK_ACTION_TYPES.MAKE_ADMIN, diff --git a/src/pages/ScheduleCall/ScheduleCallConfirmationPage.tsx b/src/pages/ScheduleCall/ScheduleCallConfirmationPage.tsx index f71d6a719b4c..897a6feaf903 100644 --- a/src/pages/ScheduleCall/ScheduleCallConfirmationPage.tsx +++ b/src/pages/ScheduleCall/ScheduleCallConfirmationPage.tsx @@ -63,9 +63,9 @@ function ScheduleCallConfirmationPage() { const dateString = format(scheduleCallDraft.date, CONST.DATE.MONTH_DAY_YEAR_FORMAT); const timeString = `${DateUtils.formatToLocalTime(scheduleCallDraft?.timeSlot)} - ${DateUtils.formatToLocalTime(addMinutes(scheduleCallDraft?.timeSlot, 30))}`; - const timeZoneStirng = timezone.selected ? DateUtils.getZoneAbbreviation(new Date(scheduleCallDraft?.timeSlot), timezone.selected) : ''; + const timezoneString = timezone.selected ? DateUtils.getZoneAbbreviation(new Date(scheduleCallDraft?.timeSlot), timezone.selected) : ''; - return `${dateString} from ${timeString} ${timeZoneStirng}`; + return `${dateString} from ${timeString} ${timezoneString}`; }, [scheduleCallDraft?.date, scheduleCallDraft?.timeSlot, timezone.selected]); return ( diff --git a/src/pages/ScheduleCall/ScheduleCallPage.tsx b/src/pages/ScheduleCall/ScheduleCallPage.tsx index 3ddbc5617315..733f84f92a23 100644 --- a/src/pages/ScheduleCall/ScheduleCallPage.tsx +++ b/src/pages/ScheduleCall/ScheduleCallPage.tsx @@ -157,7 +157,7 @@ function ScheduleCallPage() { value={scheduleCallDraft?.date} minDate={minDate} maxDate={maxDate} - selectedableDates={Object.keys(timeSlotDateMap)} + selectableDates={Object.keys(timeSlotDateMap)} DayComponent={AvailableBookingDay} onSelected={loadTimeSlotsAndSaveDate} /> diff --git a/src/pages/Search/SearchAdvancedFiltersPage/SearchFiltersTaxRatePage.tsx b/src/pages/Search/SearchAdvancedFiltersPage/SearchFiltersTaxRatePage.tsx index fa14c9f5f9d5..91444b03cd70 100644 --- a/src/pages/Search/SearchAdvancedFiltersPage/SearchFiltersTaxRatePage.tsx +++ b/src/pages/Search/SearchAdvancedFiltersPage/SearchFiltersTaxRatePage.tsx @@ -36,7 +36,7 @@ function SearchFiltersTaxRatePage() { if (!singlePolicyTaxRates) { return Object.entries(allTaxRates).map(([taxRateName, taxRateKeys]) => ({name: taxRateName, value: taxRateKeys})); } - return Object.entries(singlePolicyTaxRates).map(([taxRatekey, taxRate]) => ({name: taxRate.name, value: [taxRatekey]})); + return Object.entries(singlePolicyTaxRates).map(([taxRateKey, taxRate]) => ({name: taxRate.name, value: [taxRateKey]})); }, [allTaxRates, singlePolicyTaxRates]); const updateTaxRateFilters = useCallback((values: string[]) => SearchActions.updateAdvancedFilters({taxRate: values}), []); diff --git a/src/pages/Search/SearchTypeMenu.tsx b/src/pages/Search/SearchTypeMenu.tsx index 8647185f1242..98ce3a41b552 100644 --- a/src/pages/Search/SearchTypeMenu.tsx +++ b/src/pages/Search/SearchTypeMenu.tsx @@ -136,7 +136,7 @@ function SearchTypeMenu({queryJSON}: SearchTypeMenuProps) { const {saveScrollOffset, getScrollOffset} = useContext(ScrollOffsetContext); const onScroll = useCallback>( (e) => { - // If the layout measurement is 0, it means the flashlist is not displayed but the onScroll may be triggered with offset value 0. + // If the layout measurement is 0, it means the flash list is not displayed but the onScroll may be triggered with offset value 0. // We should ignore this case. if (e.nativeEvent.layoutMeasurement.height === 0) { return; diff --git a/src/pages/Share/ShareRootPage.tsx b/src/pages/Share/ShareRootPage.tsx index c28a9606e183..fb9e2aada6bc 100644 --- a/src/pages/Share/ShareRootPage.tsx +++ b/src/pages/Share/ShareRootPage.tsx @@ -39,7 +39,7 @@ function ShareRootPage() { const {translate} = useLocalize(); const [isFileScannable, setIsFileScannable] = useState(false); const receiptFileFormats = Object.values(CONST.RECEIPT_ALLOWED_FILE_TYPES) as string[]; - const shareFileMimetypes = Object.values(CONST.SHARE_FILE_MIMETYPE) as string[]; + const shareFileMimeTypes = Object.values(CONST.SHARE_FILE_MIMETYPE) as string[]; const [errorTitle, setErrorTitle] = useState(undefined); const [errorMessage, setErrorMessage] = useState(undefined); @@ -57,7 +57,7 @@ function ShareRootPage() { if (errorTitle) { return; } - if (!tempFile?.mimeType || !shareFileMimetypes.includes(tempFile?.mimeType)) { + if (!tempFile?.mimeType || !shareFileMimeTypes.includes(tempFile?.mimeType)) { setErrorTitle(translate('attachmentPicker.wrongFileType')); setErrorMessage(translate('attachmentPicker.notAllowedExtension')); return; @@ -100,7 +100,7 @@ function ShareRootPage() { addTempShareFile(tempFile); } }); - }, [receiptFileFormats, shareFileMimetypes, translate, errorTitle]); + }, [receiptFileFormats, shareFileMimeTypes, translate, errorTitle]); useEffect(() => { const subscription = AppState.addEventListener('change', (nextAppState) => { diff --git a/src/pages/Share/ShareTab.tsx b/src/pages/Share/ShareTab.tsx index 08c4b4fe5e8c..312aa858add7 100644 --- a/src/pages/Share/ShareTab.tsx +++ b/src/pages/Share/ShareTab.tsx @@ -7,7 +7,7 @@ import useDebouncedState from '@hooks/useDebouncedState'; import useFastSearchFromOptions from '@hooks/useFastSearchFromOptions'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; -import useScreenWrapperTranstionStatus from '@hooks/useScreenWrapperTransitionStatus'; +import useScreenWrapperTransitionStatus from '@hooks/useScreenWrapperTransitionStatus'; import useThemeStyles from '@hooks/useThemeStyles'; import {getOptimisticChatReport, saveReportDraft, searchInServer} from '@libs/actions/Report'; import {saveUnknownUserDetails} from '@libs/actions/Share'; @@ -35,7 +35,7 @@ function ShareTab() { const [betas] = useOnyx(ONYXKEYS.BETAS); const {options, areOptionsInitialized} = useOptionsList(); - const {didScreenTransitionEnd} = useScreenWrapperTranstionStatus(); + const {didScreenTransitionEnd} = useScreenWrapperTransitionStatus(); const [isSearchingForReports] = useOnyx(ONYXKEYS.IS_SEARCHING_FOR_REPORTS, {initWithStoredValues: false}); const offlineMessage: string = isOffline ? `${translate('common.youAppearToBeOffline')} ${translate('search.resultsAreLimited')}` : ''; diff --git a/src/pages/TeachersUnite/KnowATeacherPage.tsx b/src/pages/TeachersUnite/KnowATeacherPage.tsx index f5b41d525ccd..09d273c79c08 100644 --- a/src/pages/TeachersUnite/KnowATeacherPage.tsx +++ b/src/pages/TeachersUnite/KnowATeacherPage.tsx @@ -32,8 +32,8 @@ function KnowATeacherPage() { */ const onSubmit = (values: FormOnyxValues) => { const phoneLogin = getPhoneLogin(values.partnerUserID); - const validateIfnumber = validateNumber(phoneLogin); - const contactMethod = (validateIfnumber || values.partnerUserID).trim().toLowerCase(); + const validateIfNumber = validateNumber(phoneLogin); + const contactMethod = (validateIfNumber || values.partnerUserID).trim().toLowerCase(); const firstName = values.firstName.trim(); const lastName = values.lastName.trim(); diff --git a/src/pages/TransactionDuplicate/Confirmation.tsx b/src/pages/TransactionDuplicate/Confirmation.tsx index 8fb7a9f73308..fb78a661a1e8 100644 --- a/src/pages/TransactionDuplicate/Confirmation.tsx +++ b/src/pages/TransactionDuplicate/Confirmation.tsx @@ -132,7 +132,7 @@ function Confirmation() { {translate('violations.confirmDuplicatesInfo')} - {/* We need that provider here becuase MoneyRequestView component requires that */} + {/* We need that provider here because MoneyRequestView component requires that */} = { /* Step Names which are displayed in stepper */ stepNames: string[]; - /* Label which is displyed to describe current step */ + /* Label which is displayed to describe current step */ label: string; /* Values to choose from */ diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index 73691c688b15..a66653f0d391 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -548,7 +548,7 @@ function ReportScreen({route, navigation}: ReportScreenProps) { const prevReportActions = usePrevious(reportActions); useEffect(() => { // This function is only triggered when a user is invited to a room after opening the link. - // When a user opens a room they are not a member of, and the admin then invites them, only the INVITETOROOM action is available, so the background will be empty and room description is not available. + // When a user opens a room they are not a member of, and the admin then invites them, only the INVITE_TO_ROOM action is available, so the background will be empty and room description is not available. // See https://github.com/Expensify/App/issues/57769 for more details if (prevReportActions.length !== 0 || reportActions.length !== 1 || reportActions.at(0)?.actionName !== CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.INVITE_TO_ROOM) { return; @@ -705,13 +705,13 @@ function ReportScreen({route, navigation}: ReportScreenProps) { return; } - // we want to do this destinguish between normal navigation and delete behavior + // we want to do this distinguish between normal navigation and delete behavior if (lastReportActionIDFromRoute !== reportActionIDFromRoute) { setIsNavigatingToDeletedAction(true); return; } - // Clear params when Action gets deleted while heighlighted + // Clear params when action gets deleted while highlighting if (!isNavigatingToDeletedAction && prevIsLinkedActionDeleted === false) { Navigation.setParams({reportActionID: ''}); } diff --git a/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx b/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx index bc97ea5b6428..7a595841076e 100755 --- a/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx +++ b/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx @@ -138,7 +138,7 @@ function BaseReportActionContextMenu({ const wrapperStyle = StyleUtils.getReportActionContextMenuStyles(isMini, shouldUseNarrowLayout); const {isOffline} = useNetwork(); const {isProduction} = useEnvironment(); - const threedotRef = useRef(null); + const threeDotRef = useRef(null); const [betas] = useOnyx(ONYXKEYS.BETAS, {canBeMissing: false}); const [reportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${originalReportID}`, { canBeMissing: true, @@ -367,7 +367,7 @@ function BaseReportActionContextMenu({ ref={(ref) => { menuItemRefs.current[index] = ref; }} - buttonRef={isMenuAction ? threedotRef : {current: null}} + buttonRef={isMenuAction ? threeDotRef : {current: null}} icon={contextAction.icon} text={text ?? ''} successIcon={contextAction.successIcon} @@ -376,7 +376,7 @@ function BaseReportActionContextMenu({ key={contextAction.textTranslateKey} onPress={(event) => interceptAnonymousUser( - () => contextAction.onPress?.(closePopup, {...payload, ...transactionPayload, event, ...(isMenuAction ? {anchorRef: threedotRef} : {})}), + () => contextAction.onPress?.(closePopup, {...payload, ...transactionPayload, event, ...(isMenuAction ? {anchorRef: threeDotRef} : {})}), contextAction.isAnonymousAction, ) } diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx index 5a91793d8d2d..e48b4ce0e3c7 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx @@ -649,7 +649,7 @@ const ContextMenuActions: ContextMenuAction[] = [ shouldShow: ({type, reportAction, menuTarget}) => { const isAttachment = isReportActionAttachment(reportAction); - // Only hide the copylink menu item when context menu is opened over img element. + // Only hide the copy link menu item when context menu is opened over img element. const isAttachmentTarget = menuTarget?.current && 'tagName' in menuTarget.current && menuTarget?.current.tagName === 'IMG' && isAttachment; return type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && !isAttachmentTarget && !isMessageDeleted(reportAction); }, diff --git a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx index 01c14fe04973..86f0e7e9eee7 100644 --- a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx +++ b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx @@ -65,7 +65,7 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef([]); - const [shouldSwitchPositionIfOverflow, setShoudSwitchPositionIfOverflow] = useState(false); + const [shouldSwitchPositionIfOverflow, setShouldSwitchPositionIfOverflow] = useState(false); const contentRef = useRef(null); const anchorRef = useRef(null); @@ -147,8 +147,8 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef