Skip to content

Commit

Permalink
fix: add missing import and fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Oct 9, 2023
1 parent cc02af3 commit d792cf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function Edit(props: BlockEditProps<any>) {

const hasChildBlocks = useSelect(
(select) => {
// @ts-ignore
const {getBlockOrder} = select(blockEditorStore);

return getBlockOrder(clientId).length > 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Button, Tooltip} from '@wordpress/components';
import {Inserter} from '@wordpress/block-editor';
import {_x, sprintf} from '@wordpress/i18n';
import {__, _x} from '@wordpress/i18n';

/**
* The inserter used in sections for dragging and dropping blocks or clicking to add a block.
Expand All @@ -12,7 +12,7 @@ export default function EmptyBlockInserter({rootClientId}) {
rootClientId={rootClientId}
__experimentalIsQuick
className="give-section__empty-block-inserter"
renderToggle={({onToggle, disabled, isOpen, blockTitle, hasSingleBlockType}) => {
renderToggle={({onToggle, disabled, isOpen}) => {
const label = _x('Add block', 'Generic label for block inserter button', 'give');

return (
Expand Down

0 comments on commit d792cf3

Please sign in to comment.