Skip to content

Commit

Permalink
Remove unnecessary ts-ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 11, 2024
1 parent 609a3bd commit 474e955
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
5 changes: 1 addition & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ const withInspectorControl =
<BlockEdit { ...props } />
) }
{ url && sources?.length > 0 && SHOW_PREVIEW_BUTTON && (
<BlockControls
// @ts-ignore
group="parent"
>
<BlockControls group="parent">
<ToolbarGroup>
<ToolbarButton
icon={ seen }
Expand Down
4 changes: 0 additions & 4 deletions src/source-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ import {
RangeControl,
Spinner,
SelectControl,
// @ts-ignore: has no exported member
__experimentalHStack as HStack,
// @ts-ignore: has no exported member
__experimentalVStack as VStack,
// @ts-ignore: has no exported member
__experimentalToggleGroupControl as ToggleGroupControl,
// @ts-ignore: has no exported member
__experimentalToggleGroupControlOption as ToggleGroupControlOption,
} from '@wordpress/components';

Expand Down
7 changes: 1 addition & 6 deletions src/source-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import {
Button,
PanelBody,
// @ts-ignore: has no exported member
__experimentalVStack as VStack,
} from '@wordpress/components';
import { Button, PanelBody, __experimentalVStack as VStack } from '@wordpress/components';
import { MediaUploadCheck } from '@wordpress/block-editor';
import type { BlockEditProps } from '@wordpress/blocks';

Expand Down

0 comments on commit 474e955

Please sign in to comment.