From 34e3f19a5b2d5d574b44da08da297fd5798a2ce0 Mon Sep 17 00:00:00 2001 From: Marko Andrijasevic Date: Tue, 6 Nov 2018 04:09:08 +0100 Subject: [PATCH] Remove tips toggle menu option --- .../components/header/more-menu/index.js | 2 - .../components/header/tips-toggle/index.js | 45 ------------------- 2 files changed, 47 deletions(-) delete mode 100644 client/gutenberg/editor/edit-post/components/header/tips-toggle/index.js diff --git a/client/gutenberg/editor/edit-post/components/header/more-menu/index.js b/client/gutenberg/editor/edit-post/components/header/more-menu/index.js index 90c46e46fa051..bad1370b656af 100644 --- a/client/gutenberg/editor/edit-post/components/header/more-menu/index.js +++ b/client/gutenberg/editor/edit-post/components/header/more-menu/index.js @@ -15,7 +15,6 @@ import { IconButton, Dropdown, MenuGroup } from '@wordpress/components'; import ModeSwitcher from '../mode-switcher'; import FixedToolbarToggle from '../fixed-toolbar-toggle'; import PluginMoreMenuGroup from '../plugins-more-menu-group'; -import TipsToggle from '../tips-toggle'; /* eslint-disable wpcalypso/jsx-classname-namespace */ const MoreMenu = () => ( @@ -38,7 +37,6 @@ const MoreMenu = () => ( filterName="editPost.MoreMenu.settings" > - - { __( 'Show Tips' ) } - - ); -} - -export default compose( [ - withSelect( ( select ) => ( { - isActive: select( 'core/nux' ).areTipsEnabled(), - } ) ), - withDispatch( ( dispatch, ownProps ) => ( { - onToggle() { - const { disableTips, enableTips } = dispatch( 'core/nux' ); - if ( ownProps.isActive ) { - disableTips(); - } else { - enableTips(); - } - ownProps.onToggle(); - }, - } ) ), -] )( TipsToggle );