Remove test menu from Orders panel (https://github.com/woocommerce/woocommerce-admin/pull/2438)
This commit is contained in:
parent
170b815477
commit
d65736c5f3
|
@ -8,22 +8,12 @@ import { Component, Fragment } from '@wordpress/element';
|
||||||
import { compose } from '@wordpress/compose';
|
import { compose } from '@wordpress/compose';
|
||||||
import Gridicon from 'gridicons';
|
import Gridicon from 'gridicons';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { noop } from 'lodash';
|
|
||||||
import interpolateComponents from 'interpolate-components';
|
import interpolateComponents from 'interpolate-components';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WooCommerce dependencies
|
* WooCommerce dependencies
|
||||||
*/
|
*/
|
||||||
import {
|
import { EmptyContent, Flag, Link, OrderStatus, Section } from '@woocommerce/components';
|
||||||
EllipsisMenu,
|
|
||||||
EmptyContent,
|
|
||||||
Flag,
|
|
||||||
Link,
|
|
||||||
MenuTitle,
|
|
||||||
MenuItem,
|
|
||||||
OrderStatus,
|
|
||||||
Section,
|
|
||||||
} from '@woocommerce/components';
|
|
||||||
import { formatCurrency } from '@woocommerce/currency';
|
import { formatCurrency } from '@woocommerce/currency';
|
||||||
import { getAdminLink, getNewPath } from '@woocommerce/navigation';
|
import { getAdminLink, getNewPath } from '@woocommerce/navigation';
|
||||||
|
|
||||||
|
@ -226,18 +216,6 @@ class OrdersPanel extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const menu = (
|
|
||||||
<EllipsisMenu
|
|
||||||
label="Demo Menu"
|
|
||||||
renderContent={ () => (
|
|
||||||
<Fragment>
|
|
||||||
<MenuTitle>Test</MenuTitle>
|
|
||||||
<MenuItem onInvoke={ noop }>Test</MenuItem>
|
|
||||||
</Fragment>
|
|
||||||
) }
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
|
|
||||||
const title =
|
const title =
|
||||||
isRequesting || orders.length
|
isRequesting || orders.length
|
||||||
? __( 'Orders', 'woocommerce-admin' )
|
? __( 'Orders', 'woocommerce-admin' )
|
||||||
|
@ -245,7 +223,7 @@ class OrdersPanel extends Component {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<ActivityHeader title={ title } menu={ menu } />
|
<ActivityHeader title={ title } />
|
||||||
<Section>
|
<Section>
|
||||||
{ isRequesting ? (
|
{ isRequesting ? (
|
||||||
<ActivityCardPlaceholder
|
<ActivityCardPlaceholder
|
||||||
|
|
Loading…
Reference in New Issue