mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
e14363246d
GitOrigin-RevId: cbfb24a7328d499ca96caa8683b8e4b1e6858372
21 lines
526 B
JavaScript
21 lines
526 B
JavaScript
import ReactDOM from 'react-dom'
|
|
import PdfPreview from './pdf-preview'
|
|
import { ContextRoot } from '../../../shared/context/root-context'
|
|
import { Shortcuts } from './shortcuts'
|
|
|
|
function PdfPreviewDetachedRoot() {
|
|
return (
|
|
<ContextRoot>
|
|
<Shortcuts>
|
|
<PdfPreview />
|
|
</Shortcuts>
|
|
</ContextRoot>
|
|
)
|
|
}
|
|
|
|
export default PdfPreviewDetachedRoot // for testing
|
|
|
|
const element = document.getElementById('pdf-preview-detached-root')
|
|
if (element) {
|
|
ReactDOM.render(<PdfPreviewDetachedRoot />, element)
|
|
}
|