🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
chore: remove unneed business logic
YuTengjing15fd41342a14
diff --git a/src/app/[variants]/(main)/_layout/index.tsx b/src/app/[variants]/(main)/_layout/index.tsxindex 68047543b4d..f17171d1c83 100644--- a/src/app/[variants]/(main)/_layout/index.tsx+++ b/src/app/[variants]/(main)/_layout/index.tsx@@ -1,6 +1,5 @@'use client';-import { ENABLE_BUSINESS_FEATURES } from '@lobechat/business-const';import { Flexbox } from '@lobehub/ui';import { cx } from 'antd-style';import dynamic from 'next/dynamic';@@ -9,7 +8,6 @@ import { HotkeysProvider } from 'react-hotkeys-hook';import { Outlet } from 'react-router-dom';import { DndContextWrapper } from '@/app/[variants]/(main)/resource/features/DndContextWrapper';-import { useMainLayoutRenderingChecking } from '@/business/client/useMainLayoutRendingChecking';import Loading from '@/components/Loading/BrandTextLoading';import { isDesktop } from '@/const/version';import { BANNER_HEIGHT } from '@/features/AlertBanner/CloudBanner';@@ -36,11 +34,6 @@ const Layout: FC = () => {const { isPWA } = usePlatform();const { showCloudPromotion } = useServerConfigStore(featureFlagsSelectors);- const { isChecking, loadingComponent } = useMainLayoutRenderingChecking();- if (ENABLE_BUSINESS_FEATURES && isChecking) {- return loadingComponent;- }-return (<HotkeysProvider initiallyActiveScopes={[HotkeyScopeEnum.Global]}><Suspense fallback={null}>diff --git a/src/business/client/useMainLayoutRendingChecking.tsx b/src/business/client/useMainLayoutRendingChecking.tsxdeleted file mode 100644index ba1cfb1a8b8..00000000000--- a/src/business/client/useMainLayoutRendingChecking.tsx+++ /dev/null@@ -1,6 +0,0 @@-export const useMainLayoutRenderingChecking = () => {- return {- isChecking: false,- loadingComponent: null,- };-};