Skip to content

Commit

Permalink
replaces "the the" with "the" in comments (#42160)
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu authored Jul 6, 2022
1 parent bc071fc commit fe4890f
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function BlockPopoverInbetween( {
getAnchorRect={ getAnchorRect }
focusOnMount={ false }
// Render in the old slot if needed for backward compatibility,
// otherwise render in place (not in the the default popover slot).
// otherwise render in place (not in the default popover slot).
__unstableSlotName={ __unstablePopoverSlot || null }
// Forces a remount of the popover when its position changes
// This makes sure the popover doesn't animate from its previous position.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function BlockPopover( {
focusOnMount={ false }
anchorRef={ anchorRef }
// Render in the old slot if needed for backward compatibility,
// otherwise render in place (not in the the default popover slot).
// otherwise render in place (not in the default popover slot).
__unstableSlotName={ __unstablePopoverSlot || null }
// Observe movement for block animations (especially horizontal).
__unstableObserveElement={ selectedElement }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ $navigation-icon-size: 24px;
width: inherit;
height: inherit;

// Position the arrow to balance with the the text.
// Position the arrow to balance with the text.
margin-top: 0.075em;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const Popover = (
}, [ anchorRef, anchorRect, getAnchorRect ] );

/**
* Offsets the the position of the popover when the anchor is inside an iframe.
* Offsets the position of the popover when the anchor is inside an iframe.
*/
const frameOffset = useMemo( () => {
const { defaultView } = ownerDocument;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/range-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ If this property is added, a DashIcon component will be rendered after the slide

#### allowReset

If this property is true, a button to reset the the slider is rendered.
If this property is true, a button to reset the slider is rendered.

- Type: `Boolean`
- Required: No
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/tab-panel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Optionally provide a tab name for a tab to be selected upon mounting of componen

#### children

A function which renders the tabviews given the selected tab. The function is passed the active tab object as an argument as defined the the tabs prop.
A function which renders the tabviews given the selected tab. The function is passed the active tab object as an argument as defined the tabs prop.
The element to which the tooltip should anchor.

- Type: (`Object`) => `Element`
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/plugins/meta-boxes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe( 'Meta boxes', () => {
await viewPostLinks[ 0 ].click();
await page.waitForNavigation();

// Check the the dynamic block appears.
// Check the dynamic block appears.
const latestPostsBlock = await page.waitForSelector(
'.wp-block-latest-posts'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe( 'Compatibility with classic editor', () => {
await viewPostLinks[ 0 ].click();
await page.waitForNavigation();

// Check the the content doesn't contain <p> tags.
// Check the content doesn't contain <p> tags.
await page.waitForSelector( '.entry-content' );
const content = await page.$eval( '.entry-content', ( element ) =>
element.innerHTML.trim()
Expand Down
6 changes: 3 additions & 3 deletions packages/e2e-tests/specs/editor/various/links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ describe( 'Links', () => {
await page.waitForSelector( '.block-editor-link-control__search-item' );
await page.keyboard.press( 'ArrowDown' );

// Expect the the escape key to dismiss the popover when the autocomplete suggestion list is open.
// Expect the escape key to dismiss the popover when the autocomplete suggestion list is open.
await page.keyboard.press( 'Escape' );
expect(
await page.$(
Expand All @@ -417,7 +417,7 @@ describe( 'Links', () => {
)
).not.toBeNull();

// Expect the the escape key to dismiss the popover normally.
// Expect the escape key to dismiss the popover normally.
await page.keyboard.press( 'Escape' );
expect(
await page.$(
Expand All @@ -440,7 +440,7 @@ describe( 'Links', () => {
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Tab' );

// Expect the the escape key to dismiss the popover normally.
// Expect the escape key to dismiss the popover normally.
await page.keyboard.press( 'Escape' );
expect(
await page.$(
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/editor/various/typewriter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe( 'TypeWriter', () => {

expect( await getCaretPosition() ).toBeGreaterThan( initialPosition );

// Create blocks until the the typewriter effect kicks in.
// Create blocks until the typewriter effect kicks in.
while (
await page.evaluate(
() =>
Expand Down Expand Up @@ -173,7 +173,7 @@ describe( 'TypeWriter', () => {

let count = 0;

// Create blocks until the the typewriter effect kicks in, create at
// Create blocks until the typewriter effect kicks in, create at
// least 10 blocks to properly test the .
while (
( await page.evaluate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SettingsSidebar = () => {
// The settings sidebar is used by the edit-post/document and edit-post/block sidebars.
// sidebarName represents the sidebar that is active or that should be active when the SettingsSidebar toggle button is pressed.
// If one of the two sidebars is active the component will contain the content of that sidebar.
// When neither of the the two sidebars is active we can not simply return null, because the PluginSidebarEditPost
// When neither of the two sidebars is active we can not simply return null, because the PluginSidebarEditPost
// component, besides being used to render the sidebar, also renders the toggle button. In that case sidebarName
// should contain the sidebar that will be active when the toggle button is pressed. If a block
// is selected, that should be edit-post/block otherwise it's edit-post/document.
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export const moveBlockToWidgetArea =
);
const destinationRootClientId = destinationWidgetAreaBlock.clientId;

// Get the index for moving to the end of the the destination widget area.
// Get the index for moving to the end of the destination widget area.
const destinationInnerBlocksClientIds = registry
.select( blockEditorStore )
.getBlockOrder( destinationRootClientId );
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-aztec/src/AztecView.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class AztecView extends Component {
}

_onChange( event ) {
// iOS uses the the onKeyDown prop directly from native only when one of the triggerKeyCodes is entered, but
// iOS uses the onKeyDown prop directly from native only when one of the triggerKeyCodes is entered, but
// Android includes the information needed for onKeyDown in the event passed to onChange.
if ( Platform.OS === 'android' ) {
const triggersIncludeEventKeyCode =
Expand Down

0 comments on commit fe4890f

Please sign in to comment.