removing the usage of useIsNewEditorEnabled from first set of files (#31800)

GitOrigin-RevId: 821885295f4dab046d9abf552d7fbd7a21d86fb5
This commit is contained in:
Davinder Singh
2026-03-06 09:14:55 +00:00
committed by Copybot
parent 3fa5ce8b16
commit 281dc16a6d
23 changed files with 55 additions and 267 deletions
@@ -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 />