From 09415ef7a88cd9469efd395925f183014cad7240 Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Fri, 7 Aug 2020 03:07:36 +0300 Subject: [PATCH] Remove erroneous navigation component (https://github.com/woocommerce/woocommerce-admin/pull/4923) --- .../client/navigation/index.js | 59 ------------------- .../client/navigation/style.scss | 19 ------ 2 files changed, 78 deletions(-) delete mode 100644 plugins/woocommerce-admin/client/navigation/index.js delete mode 100644 plugins/woocommerce-admin/client/navigation/style.scss diff --git a/plugins/woocommerce-admin/client/navigation/index.js b/plugins/woocommerce-admin/client/navigation/index.js deleted file mode 100644 index aca4e243f0d..00000000000 --- a/plugins/woocommerce-admin/client/navigation/index.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * External dependencies - */ -import { Component } from '@wordpress/element'; -import { withSelect } from '@wordpress/data'; - -/** - * WooCommerce dependencies - */ -import { SETTINGS_STORE_NAME } from '@woocommerce/data'; - -/** - * Internal dependencies - */ -import './style.scss'; - -class Navigation extends Component { - renderMenuItem( item, depth = 0 ) { - const { slug, title, url } = item; - - return ( -
  • - { title } - { item.children && item.children.length && ( - - ) } -
  • - ); - } - - render() { - const { items } = this.props; - - return ( -
    - -
    - ); - } -} - -export default withSelect( ( select ) => { - const items = select( SETTINGS_STORE_NAME ).getSetting( - 'wc_admin', - 'wcNavigation' - ); - return { items }; -} )( Navigation ); diff --git a/plugins/woocommerce-admin/client/navigation/style.scss b/plugins/woocommerce-admin/client/navigation/style.scss deleted file mode 100644 index 2b2de3b5b01..00000000000 --- a/plugins/woocommerce-admin/client/navigation/style.scss +++ /dev/null @@ -1,19 +0,0 @@ -.woocommerce-navigation { - position: fixed; - top: $admin-bar-height; - left: 0; - width: 160px; - height: 100%; - background: $gray-900; -} - -.woocommerce-navigation__menu-item { - padding: $gap-smaller 0; -} - -.has-woocommerce-navigation { - #adminmenuwrap, - #adminmenuback { - display: none !important; - } -}