diff --git a/invokeai/frontend/web/src/features/ui/components/AppContent.tsx b/invokeai/frontend/web/src/features/ui/components/AppContent.tsx index f881d860970..a4da43274a0 100644 --- a/invokeai/frontend/web/src/features/ui/components/AppContent.tsx +++ b/invokeai/frontend/web/src/features/ui/components/AppContent.tsx @@ -10,11 +10,9 @@ import QueueControls from 'features/queue/components/QueueControls'; import FloatingGalleryButton from 'features/ui/components/FloatingGalleryButton'; import FloatingParametersPanelButtons from 'features/ui/components/FloatingParametersPanelButtons'; import ParametersPanelTextToImage from 'features/ui/components/ParametersPanels/ParametersPanelTextToImage'; -import { TabMountGate } from 'features/ui/components/TabMountGate'; import ModelManagerTab from 'features/ui/components/tabs/ModelManagerTab'; import QueueTab from 'features/ui/components/tabs/QueueTab'; import { WorkflowsTabContent } from 'features/ui/components/tabs/WorkflowsTabContent'; -import { TabVisibilityGate } from 'features/ui/components/TabVisibilityGate'; import { VerticalNavBar } from 'features/ui/components/VerticalNavBar'; import type { UsePanelOptions } from 'features/ui/hooks/usePanel'; import { usePanel } from 'features/ui/hooks/usePanel'; @@ -127,71 +125,18 @@ export const AppContent = memo(() => { {withLeftPanel && ( <> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + )} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {withRightPanel && ( <> @@ -218,6 +163,53 @@ const RightPanelContent = memo(() => { return ; } - return ; + if (tab === 'upscaling' || tab === 'workflows' || tab === 'gallery') { + return ; + } + + return null; }); RightPanelContent.displayName = 'RightPanelContent'; + +const LeftPanelContent = memo(() => { + const tab = useAppSelector(selectActiveTab); + + if (tab === 'generation') { + return ; + } + if (tab === 'upscaling') { + return ; + } + + if (tab === 'workflows') { + return ; + } + + return null; +}); +LeftPanelContent.displayName = 'LeftPanelContent'; + +const MainPanelContent = memo(() => { + const tab = useAppSelector(selectActiveTab); + if (tab === 'generation') { + return ; + } + if (tab === 'upscaling') { + return ; + } + if (tab === 'workflows') { + return ; + } + if (tab === 'gallery') { + return ; + } + if (tab === 'models') { + return ; + } + if (tab === 'queue') { + return ; + } + + return null; +}); +MainPanelContent.displayName = 'MainPanelContent';