Compare commits

...

1 Commits

Author SHA1 Message Date
Sakshi Gupta
ad75603fa4 fixed container copy panel opening issue 2025-12-22 21:21:59 +05:30

View File

@@ -115,6 +115,8 @@ const App = (): JSX.Element => {
} }
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [explorer]); }, [explorer]);
const isCarouselOpen = useCarousel((state) => state.shouldOpen);
const isCopilotCarouselOpen = useCarousel((state) => state.showCopilotCarousel);
if (!explorer) { if (!explorer) {
return <LoadingExplorer />; return <LoadingExplorer />;
@@ -129,6 +131,12 @@ const App = (): JSX.Element => {
) : ( ) : (
<DivExplorer explorer={explorer} /> <DivExplorer explorer={explorer} />
)} )}
<SidePanel />
<Dialog />
{<QuickstartCarousel isOpen={isCarouselOpen} />}
{<SQLQuickstartTutorial />}
{<MongoQuickstartTutorial />}
{<QueryCopilotCarousel isOpen={isCopilotCarouselOpen} explorer={explorer} />}
</div> </div>
</KeyboardShortcutRoot> </KeyboardShortcutRoot>
</div> </div>
@@ -136,8 +144,6 @@ const App = (): JSX.Element => {
}; };
const DivExplorer: React.FC<{ explorer: Explorer }> = ({ explorer }) => { const DivExplorer: React.FC<{ explorer: Explorer }> = ({ explorer }) => {
const isCarouselOpen = useCarousel((state) => state.shouldOpen);
const isCopilotCarouselOpen = useCarousel((state) => state.showCopilotCarousel);
useInteractive(MetricScenario.ApplicationLoad); useInteractive(MetricScenario.ApplicationLoad);
return ( return (
@@ -180,12 +186,6 @@ const DivExplorer: React.FC<{ explorer: Explorer }> = ({ explorer }) => {
<NotificationConsole /> <NotificationConsole />
</div> </div>
</div> </div>
<SidePanel />
<Dialog />
{<QuickstartCarousel isOpen={isCarouselOpen} />}
{<SQLQuickstartTutorial />}
{<MongoQuickstartTutorial />}
{<QueryCopilotCarousel isOpen={isCopilotCarouselOpen} explorer={explorer} />}
</div> </div>
); );
}; };