From 582e5da73fc3212b05e7fc3dcc07a29373bc70e0 Mon Sep 17 00:00:00 2001 From: Travis Weston Date: Wed, 3 Apr 2024 10:25:21 -0400 Subject: [PATCH] Fix linting issues --- entries/slotfills/show-generator-button/sidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entries/slotfills/show-generator-button/sidebar.tsx b/entries/slotfills/show-generator-button/sidebar.tsx index a3b918a..9304539 100644 --- a/entries/slotfills/show-generator-button/sidebar.tsx +++ b/entries/slotfills/show-generator-button/sidebar.tsx @@ -6,6 +6,7 @@ import { __ } from '@wordpress/i18n'; import { ClipboardButton, FormToggle } from '@wordpress/components'; import { addQueryArgs } from '@wordpress/url'; +// eslint-disable-next-line import/no-unresolved import { usePostMetaValue } from '@alleyinteractive/block-editor-tools'; import { useSelect } from '@wordpress/data'; @@ -16,7 +17,7 @@ type CoreEditorStore = { getPermalink: Function, }; -function Sidebar(): JSX.Element { +function Sidebar() { const [isChecked, setChecked] = usePostMetaValue('wp_pdf_generator_show'); const [hasCopied, setHasCopied] = useState(false);