Unify segments label appearance in form editor

[MAILPOET-2463]
This commit is contained in:
Rostislav Wolny
2020-01-09 15:10:24 +01:00
committed by Pavel Dohnal
parent e7e116c83d
commit 939b646791

View File

@@ -1,7 +1,6 @@
import React from 'react'; import React from 'react';
import { import {
CheckboxControl, CheckboxControl,
BaseControl,
} from '@wordpress/components'; } from '@wordpress/components';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import MailPoet from 'mailpoet'; import MailPoet from 'mailpoet';
@@ -36,10 +35,9 @@ const SegmentSelectEdit = ({ attributes, setAttributes }) => {
], ],
})} })}
/> />
<BaseControl <span className="mailpoet_segment_label">
label={attributes.label} {attributes.label}
className="mailpoet_segments_label" </span>
/>
{renderValues()} {renderValues()}
</> </>
); );