From dd79adbd74fa13653f4145bc6e186a68c596f913 Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:54:14 +0100 Subject: [PATCH] fix comments --- src/components/AmountPicker/types.ts | 2 +- src/components/MultipleAvatars.tsx | 2 +- src/components/SelectionList/selectionListPropTypes.js | 2 +- src/components/TextInputWithCurrencySymbol/types.ts | 2 +- src/components/TextPicker/types.ts | 4 ++-- src/components/TextWithTooltip/types.ts | 2 +- src/components/ValuePicker/types.ts | 4 ++-- src/libs/actions/TaxRate.ts | 1 - 8 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/components/AmountPicker/types.ts b/src/components/AmountPicker/types.ts index a96fa0a95bec..f7025685d840 100644 --- a/src/components/AmountPicker/types.ts +++ b/src/components/AmountPicker/types.ts @@ -32,7 +32,7 @@ type AmountPickerProps = { /** Text to display under the main menu item */ furtherDetails?: string; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltips?: boolean; } & Pick & AmountFormProps; diff --git a/src/components/MultipleAvatars.tsx b/src/components/MultipleAvatars.tsx index ba1a5351117b..98bc47e41bbe 100644 --- a/src/components/MultipleAvatars.tsx +++ b/src/components/MultipleAvatars.tsx @@ -46,7 +46,7 @@ type MultipleAvatarsProps = { /** Whether avatars are displayed within a reportAction */ isInReportAction?: boolean; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltip?: boolean; /** Whether avatars are displayed with the highlighted background color instead of the app background color. This is primarily the case for IOU previews. */ diff --git a/src/components/SelectionList/selectionListPropTypes.js b/src/components/SelectionList/selectionListPropTypes.js index f5178112a4c3..45ed1a865d33 100644 --- a/src/components/SelectionList/selectionListPropTypes.js +++ b/src/components/SelectionList/selectionListPropTypes.js @@ -190,7 +190,7 @@ const propTypes = { /** Custom content to display in the footer */ footerContent: PropTypes.oneOfType([PropTypes.func, PropTypes.node]), - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltips: PropTypes.bool, /** Whether to use dynamic maxToRenderPerBatch depending on the visible number of elements */ diff --git a/src/components/TextInputWithCurrencySymbol/types.ts b/src/components/TextInputWithCurrencySymbol/types.ts index 44ce1714dbaf..753d957221b2 100644 --- a/src/components/TextInputWithCurrencySymbol/types.ts +++ b/src/components/TextInputWithCurrencySymbol/types.ts @@ -33,7 +33,7 @@ type TextInputWithCurrencySymbolProps = { /** Whether to hide the currency symbol */ hideCurrencySymbol?: boolean; - /** Extra symbol to display next to the currency symbol */ + /** Extra symbol to display */ extraSymbol?: React.ReactNode; } & Pick; diff --git a/src/components/TextPicker/types.ts b/src/components/TextPicker/types.ts index 728b2dcbd284..179d16a07262 100644 --- a/src/components/TextPicker/types.ts +++ b/src/components/TextPicker/types.ts @@ -17,7 +17,7 @@ type TextSelectorModalProps = { /** Function to call when the user closes the modal */ onClose: () => void; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltips?: boolean; } & Pick & TextProps; @@ -38,7 +38,7 @@ type TextPickerProps = { /** Text to display under the main menu item */ furtherDetails?: string; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltips?: boolean; } & Pick & TextProps; diff --git a/src/components/TextWithTooltip/types.ts b/src/components/TextWithTooltip/types.ts index 8169df911945..4705e2b69a68 100644 --- a/src/components/TextWithTooltip/types.ts +++ b/src/components/TextWithTooltip/types.ts @@ -4,7 +4,7 @@ type TextWithTooltipProps = { /** The text to display */ text: string; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltip: boolean; /** Additional styles */ diff --git a/src/components/ValuePicker/types.ts b/src/components/ValuePicker/types.ts index c7df88bc7417..23f0d78493a8 100644 --- a/src/components/ValuePicker/types.ts +++ b/src/components/ValuePicker/types.ts @@ -30,7 +30,7 @@ type ValueSelectorModalProps = { /** Function to call when the user closes the modal */ onClose?: () => void; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltips?: boolean; }; @@ -56,7 +56,7 @@ type ValuePickerProps = { /** Text to display under the main menu item */ furtherDetails?: string; - /** Whether to show the toolip text */ + /** Whether to show the tooltip text */ shouldShowTooltips?: boolean; }; diff --git a/src/libs/actions/TaxRate.ts b/src/libs/actions/TaxRate.ts index adddfb2bc15b..1bad1de0a9f5 100644 --- a/src/libs/actions/TaxRate.ts +++ b/src/libs/actions/TaxRate.ts @@ -83,7 +83,6 @@ function createPolicyTax(policyID: string, taxRate: TaxRate) { taxRates: { taxes: { [taxRate.code]: { - pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, errors: ErrorUtils.getMicroSecondOnyxError('workspace.taxes.errors.genericFailureMessage'), }, },