Skip to content

Commit

Permalink
Move helpdrawer to the whole site (#6574)
Browse files Browse the repository at this point in the history
* Move helpdrawer to the whole site

* Lint

* nit
  • Loading branch information
albandum authored Aug 1, 2024
1 parent e341a42 commit 9f5a4e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
import { ReachedLimitPopup } from "@app/components/app/ReachedLimitPopup";
import { AssistantBrowserContainer } from "@app/components/assistant/conversation/AssistantBrowserContainer";
import ConversationViewer from "@app/components/assistant/conversation/ConversationViewer";
import { HelpAndQuickGuideWrapper } from "@app/components/assistant/conversation/HelpAndQuickGuideWrapper";
import { FixedAssistantInputBar } from "@app/components/assistant/conversation/input_bar/InputBar";
import { InputBarContext } from "@app/components/assistant/conversation/input_bar/InputBarContext";
import {
Expand Down Expand Up @@ -320,10 +319,6 @@ export function ConversationContainer({
/>
</Transition>

{activeConversationId !== "new" && (
<HelpAndQuickGuideWrapper owner={owner} user={user} />
)}

<ReachedLimitPopup
isOpened={planLimitReached}
onClose={() => setPlanLimitReached(false)}
Expand Down
7 changes: 7 additions & 0 deletions front/components/sparkle/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { useRouter } from "next/router";
import Script from "next/script";
import React, { Fragment, useEffect, useState } from "react";

import { GenerationContextProvider } from "@app/components/assistant/conversation/GenerationContextProvider";
import { HelpAndQuickGuideWrapper } from "@app/components/assistant/conversation/HelpAndQuickGuideWrapper";
import { CONVERSATION_PARENT_SCROLL_DIV_ID } from "@app/components/assistant/conversation/lib";
import type { SidebarNavigation } from "@app/components/navigation/config";
import { Navigation } from "@app/components/navigation/Navigation";
Expand Down Expand Up @@ -197,6 +199,11 @@ export default function AppLayout({
</main>
</div>
</div>
{user.user && (
<GenerationContextProvider>
<HelpAndQuickGuideWrapper owner={owner} user={user.user} />
</GenerationContextProvider>
)}
<>
<Script
src={`https://www.googletagmanager.com/gtag/js?id=${gaTrackingId}`}
Expand Down

0 comments on commit 9f5a4e2

Please sign in to comment.