mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-26 16:24:11 +00:00
Merge pull request #8224 from overleaf/ta-pdf-detach-wait-i18n
PDF Detach: Wait for i18n GitOrigin-RevId: d1774c917ba903eab9980c90dc8b1e41eaf5e935
This commit is contained in:
parent
666c2c3b47
commit
af5543f119
1 changed files with 7 additions and 0 deletions
|
@ -1,10 +1,17 @@
|
|||
import ReactDOM from 'react-dom'
|
||||
import PdfPreview from './pdf-preview'
|
||||
import { ContextRoot } from '../../../shared/context/root-context'
|
||||
import useWaitForI18n from '../../../shared/hooks/use-wait-for-i18n'
|
||||
import { Shortcuts } from './shortcuts'
|
||||
import PdfPreviewDetachedRootSafariWarning from './pdf-preview-detached-root-safari-warning'
|
||||
|
||||
function PdfPreviewDetachedRoot() {
|
||||
const { isReady } = useWaitForI18n()
|
||||
|
||||
if (!isReady) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<ContextRoot>
|
||||
<Shortcuts>
|
||||
|
|
Loading…
Reference in a new issue