From bc4f6c6632f52dfc455709bd27bda08041e225ec Mon Sep 17 00:00:00 2001 From: Ankit Kumar Shah Date: Mon, 16 Dec 2024 13:22:32 +0530 Subject: [PATCH] LoginOut: Add dropdown menu props to ToolsPanel component (#68009) Co-authored-by: Infinite-Null Co-authored-by: fabiankaegy --- packages/block-library/src/loginout/edit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-library/src/loginout/edit.js b/packages/block-library/src/loginout/edit.js index 76d6e98b1ccc3..9af634c87371c 100644 --- a/packages/block-library/src/loginout/edit.js +++ b/packages/block-library/src/loginout/edit.js @@ -8,9 +8,14 @@ import { __experimentalToolsPanelItem as ToolsPanelItem, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; +/** + * Internal dependencies + */ +import { useToolsPanelDropdownMenuProps } from '../utils/hooks'; export default function LoginOutEdit( { attributes, setAttributes } ) { const { displayLoginAsForm, redirectToCurrent } = attributes; + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); return ( <> @@ -23,6 +28,7 @@ export default function LoginOutEdit( { attributes, setAttributes } ) { redirectToCurrent: true, } ); } } + dropdownMenuProps={ dropdownMenuProps } >