Remove a feedback button from the select template step [MAILPOET-1691]
This commit is contained in:
@@ -71,10 +71,3 @@ progress::-webkit-progress-value
|
|||||||
progress::-moz-progress-bar
|
progress::-moz-progress-bar
|
||||||
background-color: progress-foreground
|
background-color: progress-foreground
|
||||||
border-radius: progress-border-radius
|
border-radius: progress-border-radius
|
||||||
|
|
||||||
span.feedback-tooltip
|
|
||||||
badge()
|
|
||||||
display inline-block
|
|
||||||
padding 0 4px
|
|
||||||
background-color #ca4a1f
|
|
||||||
|
|
||||||
|
@@ -7,6 +7,3 @@
|
|||||||
left: 0
|
left: 0
|
||||||
width: $newsletter-width
|
width: $newsletter-width
|
||||||
max-width: $newsletter-width
|
max-width: $newsletter-width
|
||||||
|
|
||||||
.newsletter-templates-feedback
|
|
||||||
margin: 0 10px
|
|
||||||
|
@@ -1,21 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ReactTooltip from 'react-tooltip';
|
|
||||||
import MailPoet from 'mailpoet';
|
|
||||||
import ReactStringReplace from 'react-string-replace';
|
|
||||||
|
|
||||||
const tooltipText = ReactStringReplace(
|
|
||||||
MailPoet.I18n.t('tooltipTemplateTabs'),
|
|
||||||
/\[link\](.*?)\[\/link\]/g,
|
|
||||||
match => (
|
|
||||||
<a
|
|
||||||
href="https://mailpoet.polldaddy.com/s/select-template-feedback"
|
|
||||||
key="feedback"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>{ match }</a>
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
const Tabs = ({ tabs, selected, select }) => (
|
const Tabs = ({ tabs, selected, select }) => (
|
||||||
<div className="wp-filter hide-if-no-js">
|
<div className="wp-filter hide-if-no-js">
|
||||||
@@ -29,28 +13,6 @@ const Tabs = ({ tabs, selected, select }) => (
|
|||||||
</a></li>
|
</a></li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<span
|
|
||||||
className="feedback-tooltip newsletter-templates-feedback"
|
|
||||||
data-event="click"
|
|
||||||
data-tip
|
|
||||||
data-for="feedback-newsletter-templates-tabs"
|
|
||||||
>{MailPoet.I18n.t('feedback')}</span>
|
|
||||||
<ReactTooltip
|
|
||||||
globalEventOff="click"
|
|
||||||
multiline
|
|
||||||
id="feedback-newsletter-templates-tabs"
|
|
||||||
efect="solid"
|
|
||||||
place="bottom"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
style={{
|
|
||||||
pointerEvents: 'all',
|
|
||||||
display: 'inline-block',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{tooltipText}
|
|
||||||
</span>
|
|
||||||
</ReactTooltip>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -210,8 +210,6 @@
|
|||||||
'websiteTimeIs': __("Your website’s time is"),
|
'websiteTimeIs': __("Your website’s time is"),
|
||||||
'noScheduledDateError': __('Please enter the scheduled date.'),
|
'noScheduledDateError': __('Please enter the scheduled date.'),
|
||||||
'schedule': __('Schedule'),
|
'schedule': __('Schedule'),
|
||||||
'feedback': __('Feedback?'),
|
|
||||||
'tooltipTemplateTabs': __("Click [link]here[/link] to give your feedback on this feature. We’d love to hear from you."),
|
|
||||||
|
|
||||||
'close': __('Close'),
|
'close': __('Close'),
|
||||||
'today': __('Today'),
|
'today': __('Today'),
|
||||||
|
Reference in New Issue
Block a user