Update Woo Subscribers component to reflect recent changes
[MAILPOET-3471]
This commit is contained in:
committed by
Veljko V
parent
8fd35a5541
commit
cf58a6367d
@@ -45,10 +45,11 @@ export const WooCommerceSubscriptionFields: React.FunctionComponent<Props> = (
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mailpoet-form-field">
|
<>
|
||||||
<div className="mailpoet-form-input mailpoet-form-select" data-automation-id="segment-woo-subscription-action">
|
<div className="mailpoet-gap" />
|
||||||
<Select
|
<Select
|
||||||
placeholder={MailPoet.I18n.t('selectWooSubscription')}
|
placeholder={MailPoet.I18n.t('selectWooSubscription')}
|
||||||
|
automationId="segment-woo-subscription-action"
|
||||||
options={productOptions}
|
options={productOptions}
|
||||||
value={find(['value', item.product_id], productOptions)}
|
value={find(['value', item.product_id], productOptions)}
|
||||||
onChange={(option: SelectOption): void => compose([
|
onChange={(option: SelectOption): void => compose([
|
||||||
@@ -56,7 +57,6 @@ export const WooCommerceSubscriptionFields: React.FunctionComponent<Props> = (
|
|||||||
assign(item),
|
assign(item),
|
||||||
])({ product_id: option.value })}
|
])({ product_id: option.value })}
|
||||||
/>
|
/>
|
||||||
</div>
|
</>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user