From 7d98bcf5f6fa98ed029a27310a5d6357131b4ce1 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 14 Sep 2021 09:36:39 +0100 Subject: [PATCH] Remove ref --- .../edit-navigation/src/components/header/inserter-button.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/edit-navigation/src/components/header/inserter-button.js b/packages/edit-navigation/src/components/header/inserter-button.js index c9c0d56eb2d890..a634aaa9b401f9 100644 --- a/packages/edit-navigation/src/components/header/inserter-button.js +++ b/packages/edit-navigation/src/components/header/inserter-button.js @@ -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'; @@ -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( @@ -36,7 +34,6 @@ function InserterButton() { return (