silverstripe-framework/admin/client/src/sections/campaign-admin/preview.js

19 lines
387 B
JavaScript
Raw Normal View History

2016-04-12 00:24:16 +02:00
import React from 'react';
import SilverStripeComponent from 'silverstripe-component';
2016-04-14 02:23:21 +02:00
/**
* Renders the right-hand collapsable change preview panel
*/
2016-04-12 00:24:16 +02:00
class CampaignPreview extends SilverStripeComponent {
render() {
return (
<div className="pages-preview">
<iframe src={this.props.previewUrl}></iframe>
</div>
);
}
}
export default CampaignPreview;