Merge pull request #25213 from overleaf/dp-switch-to-editor

Add SwitchToEditorButton to new editor

GitOrigin-RevId: 6ea546fbc208c0a815f895c33ce4b5fe67829083
This commit is contained in:
David
2025-05-01 11:24:27 +01:00
committed by Copybot
parent aae0d42002
commit c869178ec3
@@ -3,6 +3,7 @@ import OlButtonToolbar from '@/features/ui/components/ol/ol-button-toolbar'
import PdfCompileButton from '@/features/pdf-preview/components/pdf-compile-button'
import PdfHybridDownloadButton from '@/features/pdf-preview/components/pdf-hybrid-download-button'
import { DetachedSynctexControl } from '@/features/pdf-preview/components/detach-synctex-control'
import SwitchToEditorButton from '@/features/pdf-preview/components/switch-to-editor-button'
function PdfPreviewHybridToolbar() {
// TODO: add detached pdf logic
@@ -14,8 +15,9 @@ function PdfPreviewHybridToolbar() {
</div>
<div className="toolbar-pdf-right">
<div className="toolbar-pdf-controls" id="toolbar-pdf-controls" />
<SwitchToEditorButton />
<DetachedSynctexControl />
{/* TODO: should we have switch to editor/code check? */}
{/* TODO: should we have code check? */}
</div>
</OlButtonToolbar>
)