Render Trigger title differently from usual steps

[MAILPOET-4587]
This commit is contained in:
David Remer
2022-09-16 07:07:21 +03:00
committed by Jan Jakeš
parent df8ba7351c
commit b2969c1de1

View File

@@ -81,10 +81,14 @@ export function Step({ step, isSelected }: Props): JSX.Element {
</div>
<div>
<div className="mailpoet-automation-editor-step-title">
{stepTypeData.title}
{step.type !== 'trigger'
? stepTypeData.title
: __('Trigger', 'mailpoet')}
</div>
<div className="mailpoet-automation-editor-step-subtitle">
{stepTypeData.subtitle(step)}
{step.type !== 'trigger'
? stepTypeData.subtitle(step)
: stepTypeData.title}
</div>
</div>
</CompositeItem>