mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
removing the usage of useIsNewEditorEnabled from first set of files (#31800)
GitOrigin-RevId: 821885295f4dab046d9abf552d7fbd7a21d86fb5
This commit is contained in:
-9
@@ -1,17 +1,8 @@
|
||||
import React, { FC, lazy, Suspense } from 'react'
|
||||
import { useLayoutContext } from '@/shared/context/layout-context'
|
||||
import { useIsNewEditorEnabled } from '@/features/ide-redesign/utils/new-editor-utils'
|
||||
|
||||
const FullProjectSearchUI = lazy(() => import('./full-project-search-ui'))
|
||||
|
||||
const FullProjectSearch: FC = () => {
|
||||
const { projectSearchIsOpen } = useLayoutContext()
|
||||
const newEditor = useIsNewEditorEnabled()
|
||||
|
||||
if (!projectSearchIsOpen && !newEditor) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<FullProjectSearchUI />
|
||||
|
||||
Reference in New Issue
Block a user