From 6598d7e47df27f95ffc2f7b9fedd78c49c13ce8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Tue, 25 Oct 2022 17:30:11 +0200 Subject: [PATCH] Show patterns & templates in Inspector --- .../block-library/src/template-part/edit/index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/template-part/edit/index.js b/packages/block-library/src/template-part/edit/index.js index 83b1a8d450b6ca..962f4f62b9914c 100644 --- a/packages/block-library/src/template-part/edit/index.js +++ b/packages/block-library/src/template-part/edit/index.js @@ -15,8 +15,9 @@ import { store as blockEditorStore, __experimentalRecursionProvider as RecursionProvider, __experimentalUseHasRecursion as useHasRecursion, + InspectorControls, } from '@wordpress/block-editor'; -import { Spinner, Modal, MenuItem } from '@wordpress/components'; +import { Spinner, Modal, MenuItem, PanelBody } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; import { store as coreStore } from '@wordpress/core-data'; import { useState, createInterpolateElement } from '@wordpress/element'; @@ -217,6 +218,17 @@ export default function TemplatePartEdit( { /> ) } + + + {} } //no operation + /> + + ); }