[7.3] [Canvas] Apply global CSS to export workpad view (#41298) (#41314)

This commit is contained in:
Catherine Liu 2019-07-17 10:56:49 -07:00 committed by GitHub
parent dc1e750daf
commit 90a0c0ce41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import Style from 'style-it';
import { WorkpadPage } from '../../../components/workpad_page';
import { Link } from '../../../components/link';
@ -36,17 +37,20 @@ export class ExportApp extends React.PureComponent {
Edit Workpad
</Link>
</div>
<div className="canvasExport__stageContent">
<WorkpadPage
isSelected
key={activePage.id}
pageId={activePage.id}
height={height}
width={width}
registerLayout={() => {}}
unregisterLayout={() => {}}
/>
</div>
{Style.it(
workpad.css,
<div className="canvasExport__stageContent">
<WorkpadPage
isSelected
key={activePage.id}
pageId={activePage.id}
height={height}
width={width}
registerLayout={() => {}}
unregisterLayout={() => {}}
/>
</div>
)}
</div>
</div>
);