Remove actions dropdown
MAILPOET-4532
This commit is contained in:
committed by
Jan Jakeš
parent
047bd94d98
commit
84b6baa724
@@ -1,5 +1,4 @@
|
|||||||
import { Search, TableCard } from '@woocommerce/components/build';
|
import { Search, TableCard } from '@woocommerce/components/build';
|
||||||
import { Button, Dropdown, MenuGroup, MenuItem } from '@wordpress/components';
|
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
import { getRow } from './get-row';
|
import { getRow } from './get-row';
|
||||||
import { Workflow } from './workflow';
|
import { Workflow } from './workflow';
|
||||||
@@ -34,27 +33,6 @@ export function AutomationListing({ workflows, loading }: Props): JSX.Element {
|
|||||||
hasSearch
|
hasSearch
|
||||||
showMenu={false}
|
showMenu={false}
|
||||||
actions={[
|
actions={[
|
||||||
<div key="actions" className="mailpoet-automation-listing-actions">
|
|
||||||
<Dropdown
|
|
||||||
renderToggle={({ isOpen, onToggle }) => (
|
|
||||||
<Button
|
|
||||||
className="mailpoet-automation-listing-action-button"
|
|
||||||
variant="secondary"
|
|
||||||
aria-expanded={isOpen}
|
|
||||||
onClick={onToggle}
|
|
||||||
label=""
|
|
||||||
disabled
|
|
||||||
>
|
|
||||||
Actions
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
renderContent={() => (
|
|
||||||
<MenuGroup>
|
|
||||||
<MenuItem icon="trash">Move to trash</MenuItem>
|
|
||||||
</MenuGroup>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
</div>,
|
|
||||||
<Search
|
<Search
|
||||||
className="mailpoet-automation-listing-search"
|
className="mailpoet-automation-listing-search"
|
||||||
allowFreeTextSearch
|
allowFreeTextSearch
|
||||||
|
Reference in New Issue
Block a user