From 579ffcf7c2c62c13917de117188dc46035129378 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 22 May 2024 10:05:35 +0100 Subject: [PATCH] DataViews: Remove non-used file --- .../dataviews/src/dropdown-menu-helper.js | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 packages/dataviews/src/dropdown-menu-helper.js diff --git a/packages/dataviews/src/dropdown-menu-helper.js b/packages/dataviews/src/dropdown-menu-helper.js deleted file mode 100644 index ce0ace8f61e55..0000000000000 --- a/packages/dataviews/src/dropdown-menu-helper.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * WordPress dependencies - */ -import { - Icon, - privateApis as componentsPrivateApis, -} from '@wordpress/components'; -import { forwardRef } from '@wordpress/element'; -import { SVG, Circle } from '@wordpress/primitives'; - -/** - * Internal dependencies - */ -import { unlock } from './lock-unlock'; - -const { DropdownMenuItemV2: DropdownMenuItem } = unlock( - componentsPrivateApis -); - -const radioCheck = ( - - - -); - -/** - * A custom implementation of a radio menu item using the standard menu item - * component, which allows deselecting selected values. - */ -export const DropdownMenuRadioItemCustom = forwardRef( - function DropdownMenuRadioItemCustom( - { checked, name, value, hideOnClick, onChange, onClick, ...props }, - ref - ) { - const onClickHandler = ( e ) => { - onClick?.( e ); - onChange?.( { ...e, target: { ...e.target, value } } ); - }; - return ( - - ) : ( - - ) - } - onClick={ onClickHandler } - { ...props } - /> - ); - } -);