Skip to content

Commit

Permalink
Remove ref
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Sep 14, 2021
1 parent ed0ba2a commit 7d98bcf
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { store as blockEditorStore } from '@wordpress/block-editor';
import { Button, ToolbarItem } from '@wordpress/components';
import { _x } from '@wordpress/i18n';
import { useRef } from '@wordpress/element';
import { useSelect, useDispatch } from '@wordpress/data';
import { plus } from '@wordpress/icons';

Expand All @@ -15,7 +14,6 @@ import { useNavigationEditorRootBlock } from '../../hooks';
import { store as editNavigationStore } from '../../store';

function InserterButton() {
const inserterButton = useRef();
const { navBlockClientId } = useNavigationEditorRootBlock();

const { isInserterOpened, hasInserterItems } = useSelect(
Expand All @@ -36,7 +34,6 @@ function InserterButton() {

return (
<ToolbarItem
ref={ inserterButton }
as={ Button }
className="edit-navigation-header-toolbar__inserter-toggle"
variant="primary"
Expand Down

0 comments on commit 7d98bcf

Please sign in to comment.