Remove background images editor announcement
[MAILPOET-1672]
This commit is contained in:
@ -1,27 +0,0 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
import InAppAnnouncement from 'announcements/in_app_announcement.jsx';
|
||||
|
||||
const BackgroundImageAnnouncement = props => (
|
||||
<InAppAnnouncement
|
||||
validUntil={new Date('2018-10-06')}
|
||||
height="700px"
|
||||
showOnlyOnceSlug="background_image"
|
||||
>
|
||||
<div className="mailpoet_in_app_announcement_background_videos">
|
||||
<h2>
|
||||
{MailPoet.I18n.t('announcementBackgroundImagesHeading').replace('%username%', props.username)}
|
||||
</h2>
|
||||
<p>{MailPoet.I18n.t('announcementBackgroundImagesMessage')}</p>
|
||||
<video src={props.videoUrl} controls autoPlay><track kind="captions" /></video>
|
||||
</div>
|
||||
</InAppAnnouncement>
|
||||
);
|
||||
|
||||
BackgroundImageAnnouncement.propTypes = {
|
||||
username: PropTypes.string.isRequired,
|
||||
videoUrl: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
export default BackgroundImageAnnouncement;
|
@ -3,7 +3,6 @@ import Breadcrumb from 'newsletters/breadcrumb.jsx';
|
||||
import MailPoet from 'mailpoet';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import BackgroundImageAnnouncement from './background_image_announcement.jsx';
|
||||
import displayTutorial from './tutorial.jsx';
|
||||
|
||||
const renderBreadcrumb = (newsletterType) => {
|
||||
@ -18,16 +17,6 @@ const renderBreadcrumb = (newsletterType) => {
|
||||
ReactDOM.render(breadcrumb, breadcrumbContainer);
|
||||
};
|
||||
|
||||
const renderAnnouncement = () => {
|
||||
const container = document.getElementById('mailpoet_editor_announcement');
|
||||
ReactDOM.render(
|
||||
<BackgroundImageAnnouncement
|
||||
username={window.config.currentUserFirstName || window.config.currentUserUsername}
|
||||
videoUrl={window.config.backgroundImageDemoUrl}
|
||||
/>, container
|
||||
);
|
||||
};
|
||||
|
||||
const initializeEditor = (config) => {
|
||||
const editorContainer = document.getElementById('mailpoet_editor');
|
||||
const getUrlParam = param => (location.search.split(`${param}=`)[1] || '').split('&')[0];
|
||||
@ -62,7 +51,6 @@ const initializeEditor = (config) => {
|
||||
});
|
||||
|
||||
renderBreadcrumb(newsletter.type);
|
||||
renderAnnouncement();
|
||||
|
||||
if (newsletter.status === 'sending' && newsletter.queue && newsletter.queue.status === null) {
|
||||
MailPoet.Ajax.post({
|
||||
|
Reference in New Issue
Block a user