diff --git a/src/interface/web/app/components/sidePanel/chatHistorySidePanel.tsx b/src/interface/web/app/components/sidePanel/chatHistorySidePanel.tsx index 51fdf9db..768917a8 100644 --- a/src/interface/web/app/components/sidePanel/chatHistorySidePanel.tsx +++ b/src/interface/web/app/components/sidePanel/chatHistorySidePanel.tsx @@ -105,6 +105,7 @@ import { ScrollAreaScrollbar } from "@radix-ui/react-scroll-area"; import { KhojLogoType } from "@/app/components/logo/khojLogo"; import NavMenu from "@/app/components/navMenu/navMenu"; import { getIconFromIconName } from "@/app/common/iconUtils"; +import LoginPrompt from "../loginPrompt/loginPrompt"; // Define a fetcher function const fetcher = (url: string) => @@ -908,6 +909,7 @@ export default function SidePanel(props: SidePanelProps) { const [organizedData, setOrganizedData] = useState(null); const [subsetOrganizedData, setSubsetOrganizedData] = useState(null); const [enabled, setEnabled] = useState(false); + const [showLoginPrompt, setShowLoginPrompt] = useState(false); const authenticatedData = useAuthenticatedData(); const { data: chatSessions } = useChatSessionsFetchRequest( @@ -955,6 +957,13 @@ export default function SidePanel(props: SidePanelProps) {
+ {showLoginPrompt && ( + + )}
{props.isMobileWidth ? ( ) : (
- setShowLoginPrompt(true)} > - {" "} - {/* Redirect to login page */} - - + + Sign Up +
)} @@ -1068,15 +1075,11 @@ export default function SidePanel(props: SidePanelProps) { New Conversation - - - {" "} - {/* Redirect to login page */} - - + {" "} +
)}