Render Trigger title differently from usual steps
[MAILPOET-4587]
This commit is contained in:
@@ -81,10 +81,14 @@ export function Step({ step, isSelected }: Props): JSX.Element {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="mailpoet-automation-editor-step-title">
|
<div className="mailpoet-automation-editor-step-title">
|
||||||
{stepTypeData.title}
|
{step.type !== 'trigger'
|
||||||
|
? stepTypeData.title
|
||||||
|
: __('Trigger', 'mailpoet')}
|
||||||
</div>
|
</div>
|
||||||
<div className="mailpoet-automation-editor-step-subtitle">
|
<div className="mailpoet-automation-editor-step-subtitle">
|
||||||
{stepTypeData.subtitle(step)}
|
{step.type !== 'trigger'
|
||||||
|
? stepTypeData.subtitle(step)
|
||||||
|
: stepTypeData.title}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CompositeItem>
|
</CompositeItem>
|
||||||
|
Reference in New Issue
Block a user