escape hatch preview component

This commit is contained in:
Francis Thibault 2019-11-26 14:23:53 -05:00
parent 35562a0ab9
commit 1d455d4adf

View File

@ -150,7 +150,7 @@ const Preview: FunctionComponent<PreviewProps> = ({
const [expanded, setExpanded] = useState(isExpanded);
const { source, actionItem } = getSource(withSource, expanded, setExpanded);
const [scale, setScale] = useState(1);
const previewClasses = className ? `${className} sbdocs-preview` : 'sbdocs-preview';
const previewClasses = className ? `${className} sbdocs sbdocs-preview` : 'sbdocs sbdocs-preview';
if (withToolbar && Array.isArray(children)) {
logger.warn('Cannot use toolbar with multiple preview children, disabling');