diff --git a/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/docs/example.js b/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/docs/example.js index 6f6c621bb77..891f0c8149b 100644 --- a/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/docs/example.js +++ b/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/docs/example.js @@ -3,51 +3,50 @@ * Internal dependencies */ import { - Button, EllipsisMenu, MenuItem, MenuTitle, - ToggleControl, } from '@woocommerce/components'; /** * External dependencies */ import { withState } from '@wordpress/compose'; +import { Fragment } from '@wordpress/element'; +import { Icon } from '@wordpress/components'; export default withState( { showCustomers: true, showOrders: true, } )( ( { setState, showCustomers, showOrders } ) => ( { - return ( -
- Display Stats - setState( { showCustomers: ! showCustomers } ) }> - setState( { showCustomers: ! showCustomers } ) } - /> - - setState( { showOrders: ! showOrders } ) }> - setState( { showOrders: ! showOrders } ) } - /> - - - - -
- ); - } } + renderContent={ ( { onToggle } ) => ( + + Display Stats + setState( { showCustomers: ! showCustomers } ) } + > + Show Customers + + setState( { showOrders: ! showOrders } ) } + > + Show Orders + + + + Close Menu + + + ) } /> ) );