From 00beab4af8cfa9a2cfea833eeed6b28dba53b311 Mon Sep 17 00:00:00 2001 From: pengqiseven <134899215+pengqiseven@users.noreply.github.com> Date: Tue, 20 May 2025 22:24:57 +0800 Subject: [PATCH] chore(docs): remove redundant word in comment (#30415) Issue number: N/A --------- 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 c458b85150..513a53d50f 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 1d4debfac5..93bb754489 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 94870de369..852567c64a 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 f1c966de7d..66564468a4 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 b3215f43cc..be0647e466 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;