From d87cf319265cd68efc79eb68d491e893f2f18fe2 Mon Sep 17 00:00:00 2001 From: pengqiseven <912170095@qq.com> Date: Sat, 17 May 2025 01:09:09 +0800 Subject: [PATCH] chore: remove redundant word in comment Signed-off-by: pengqiseven <912170095@qq.com> --- core/src/components.d.ts | 4 ++-- core/src/components/picker-legacy-column/picker-column.tsx | 2 +- core/src/components/searchbar/searchbar.tsx | 2 +- docs/core/testing/usage-instructions.md | 2 +- packages/react/src/components/IonRouterContext.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index c458b851506..513a53d50fe 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -2612,7 +2612,7 @@ export namespace Components { */ "cancelButtonIcon": string; /** - * Set the the cancel button text. Only applies to `ios` mode. + * Set the cancel button text. Only applies to `ios` mode. */ "cancelButtonText": string; /** @@ -7443,7 +7443,7 @@ declare namespace LocalJSX { */ "cancelButtonIcon"?: string; /** - * Set the the cancel button text. Only applies to `ios` mode. + * Set the cancel button text. Only applies to `ios` mode. */ "cancelButtonText"?: string; /** diff --git a/core/src/components/picker-legacy-column/picker-column.tsx b/core/src/components/picker-legacy-column/picker-column.tsx index 1d4debfac56..93bb7544895 100644 --- a/core/src/components/picker-legacy-column/picker-column.tsx +++ b/core/src/components/picker-legacy-column/picker-column.tsx @@ -386,7 +386,7 @@ export class PickerColumnCmp implements ComponentInterface { const colEl = this.optsEl; if (colEl) { // DOM READ - // We perfom a DOM read over a rendered item, this needs to happen after the first render or after the the column has changed + // We perfom a DOM read over a rendered item, this needs to happen after the first render or after the column has changed this.optHeight = colEl.firstElementChild ? colEl.firstElementChild.clientHeight : 0; } this.refresh(forceRefresh, animated); diff --git a/core/src/components/searchbar/searchbar.tsx b/core/src/components/searchbar/searchbar.tsx index 94870de369a..852567c64a3 100644 --- a/core/src/components/searchbar/searchbar.tsx +++ b/core/src/components/searchbar/searchbar.tsx @@ -101,7 +101,7 @@ export class Searchbar implements ComponentInterface { @Prop() cancelButtonIcon = config.get('backButtonIcon', arrowBackSharp) as string; /** - * Set the the cancel button text. Only applies to `ios` mode. + * Set the cancel button text. Only applies to `ios` mode. */ @Prop() cancelButtonText = 'Cancel'; diff --git a/docs/core/testing/usage-instructions.md b/docs/core/testing/usage-instructions.md index f1c966de7d0..66564468a44 100644 --- a/docs/core/testing/usage-instructions.md +++ b/docs/core/testing/usage-instructions.md @@ -273,7 +273,7 @@ Instead, use the [Update Reference Screenshots GitHub Action](https://github.com 3. Leave the input field blank. 4. Click **Run workflow**. -This workflow will re-run all of the the screenshot tests. Instead of failing any tests with mismatched screenshots, it will take new ground truth screenshots. These ground truth screenshots will be pushed as a single commit to your branch once the workflow is completed. +This workflow will re-run all of the screenshot tests. Instead of failing any tests with mismatched screenshots, it will take new ground truth screenshots. These ground truth screenshots will be pushed as a single commit to your branch once the workflow is completed. If you want to update ground truths for a specific test, you can pass the test file path as an input to the workflow. This is useful when working on a specific component. diff --git a/packages/react/src/components/IonRouterContext.tsx b/packages/react/src/components/IonRouterContext.tsx index b3215f43cc1..be0647e4668 100644 --- a/packages/react/src/components/IonRouterContext.tsx +++ b/packages/react/src/components/IonRouterContext.tsx @@ -79,7 +79,7 @@ export type UseIonRouterResult = { */ goBack(animationBuilder?: AnimationBuilder): void; /** - * Determines if there are any additional routes in the the Router's history. However, routing is not prevented if the browser's history has more entries. Returns true if more entries exist, false if not. + * Determines if there are any additional routes in the Router's history. However, routing is not prevented if the browser's history has more entries. Returns true if more entries exist, false if not. */ canGoBack(): boolean; routeInfo: RouteInfo;