Commit ff7f161a authored by StyleZhang's avatar StyleZhang

fix: delete useless code

parent b23fb2c8
...@@ -11,7 +11,6 @@ import AppNav from './app-nav' ...@@ -11,7 +11,6 @@ import AppNav from './app-nav'
import DatasetNav from './dataset-nav' import DatasetNav from './dataset-nav'
import s from './index.module.css' import s from './index.module.css'
import type { GithubRepo, LangGeniusVersionResponse, UserProfileResponse } from '@/models/common' import type { GithubRepo, LangGeniusVersionResponse, UserProfileResponse } from '@/models/common'
import NewAppDialog from '@/app/(commonLayout)/apps/NewAppDialog'
import { WorkspaceProvider } from '@/context/workspace-context' import { WorkspaceProvider } from '@/context/workspace-context'
import { Grid01 } from '@/app/components/base/icons/src/vender/line/layout' import { Grid01 } from '@/app/components/base/icons/src/vender/line/layout'
import { Grid01 as Grid01Solid } from '@/app/components/base/icons/src/vender/solid/layout' import { Grid01 as Grid01Solid } from '@/app/components/base/icons/src/vender/solid/layout'
...@@ -40,7 +39,6 @@ const Header: FC<IHeaderProps> = ({ ...@@ -40,7 +39,6 @@ const Header: FC<IHeaderProps> = ({
isBordered, isBordered,
}) => { }) => {
const { t } = useTranslation() const { t } = useTranslation()
const [showNewAppDialog, setShowNewAppDialog] = useState(false)
const showEnvTag = langeniusVersionInfo.current_env === 'TESTING' || langeniusVersionInfo.current_env === 'DEVELOPMENT' const showEnvTag = langeniusVersionInfo.current_env === 'TESTING' || langeniusVersionInfo.current_env === 'DEVELOPMENT'
const selectedSegment = useSelectedLayoutSegment() const selectedSegment = useSelectedLayoutSegment()
const isPluginsComingSoon = selectedSegment === 'plugins-coming-soon' const isPluginsComingSoon = selectedSegment === 'plugins-coming-soon'
...@@ -142,7 +140,6 @@ const Header: FC<IHeaderProps> = ({ ...@@ -142,7 +140,6 @@ const Header: FC<IHeaderProps> = ({
</WorkspaceProvider> </WorkspaceProvider>
</div> </div>
</div> </div>
<NewAppDialog show={showNewAppDialog} onClose={() => setShowNewAppDialog(false)} />
</div> </div>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment