From 88fdae11ce3c90edc0c15eb0d6aee881776c9fec Mon Sep 17 00:00:00 2001 From: Prince Baghel Date: Sat, 21 Sep 2024 17:54:59 +0530 Subject: [PATCH] update: orgChatToggler --- src/app/page.tsx | 22 +++++++++++++--------- src/components/chatSidebar.tsx | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index fd700e8..d92756c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -15,6 +15,7 @@ import InputBar from "@/components/inputBar2"; import { ChatType } from "@/lib/types"; import { parseAsString, useQueryState } from "next-usequerystate"; import ChatCardWrapper from "@/components/chatcardwrapper"; +import { OrgChatToggler } from "@/components/chatSidebar"; const handleSmoothScroll = (): void => { if (typeof window !== "undefined") { @@ -116,7 +117,7 @@ export default function Home() { Let's hyper-accelerate your research.
- {isSignedIn && orgId ? ( + {isSignedIn && orgId && orgSlug ? (
> } /> -
- +
+ +
+ +
) : ( diff --git a/src/components/chatSidebar.tsx b/src/components/chatSidebar.tsx index 571a9a0..f6b942c 100644 --- a/src/components/chatSidebar.tsx +++ b/src/components/chatSidebar.tsx @@ -43,7 +43,7 @@ export default function ChatSidebar({ ); } -const OrgChatToggler = ({ +export const OrgChatToggler = ({ orgId, orgSlug, }: {