diff --git a/mailpoet/assets/css/src/components-automation-listing/cells/_actions.scss b/mailpoet/assets/css/src/components-automation-listing/cells/_actions.scss deleted file mode 100644 index 88c96fae57..0000000000 --- a/mailpoet/assets/css/src/components-automation-listing/cells/_actions.scss +++ /dev/null @@ -1,7 +0,0 @@ -.mailpoet-automation-listing-cell-actions { - align-items: center; - display: grid; - gap: 8px; - grid-auto-flow: column; - white-space: nowrap; -} diff --git a/mailpoet/assets/css/src/mailpoet-automation.scss b/mailpoet/assets/css/src/mailpoet-automation.scss index adee53df10..553905a6a9 100644 --- a/mailpoet/assets/css/src/mailpoet-automation.scss +++ b/mailpoet/assets/css/src/mailpoet-automation.scss @@ -12,7 +12,6 @@ @import './components-automation-listing/listing'; @import './components-automation-listing/header'; @import './components-automation-listing/search'; -@import './components-automation-listing/cells/actions'; @import './components-automation-listing/cells/status'; // automation templates diff --git a/mailpoet/assets/js/src/automation/listing/components/actions/analytics.tsx b/mailpoet/assets/js/src/automation/listing/components/actions/analytics.tsx index 12dc66d837..a8dda00eeb 100644 --- a/mailpoet/assets/js/src/automation/listing/components/actions/analytics.tsx +++ b/mailpoet/assets/js/src/automation/listing/components/actions/analytics.tsx @@ -1,3 +1,4 @@ +import { ComponentProps } from 'react'; import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { addQueryArgs } from '@wordpress/url'; @@ -7,17 +8,25 @@ import { MailPoet } from '../../../../mailpoet'; type Props = { automation: AutomationItem; label?: string; + variant?: ComponentProps['variant']; }; -export function Analytics({ automation, label }: Props): JSX.Element { +export function Analytics({ + automation, + label, + variant = 'link', +}: Props): JSX.Element { const { id, isLegacy } = automation; return isLegacy ? ( - + ) : ( ) : (