From 7c8ff819b768005da5f1d279d48f8b91705c37f1 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Thu, 12 Jun 2025 19:03:13 +0600 Subject: [PATCH] wip --- .../RoadmapAIChatHistory/RoadmapAIChatHistory.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx b/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx index 9382ebd77..ce06d2bcc 100644 --- a/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx +++ b/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx @@ -10,6 +10,7 @@ import { queryClient } from '../../stores/query-client'; import { SearchAIChatHistory } from '../AIChatHistory/SearchAIChatHistory'; import { billingDetailsOptions } from '../../queries/billing'; import { UpgradeToProMessage } from '../AIChatHistory/ListChatHistory'; +import { showLoginPopup } from '../../lib/popup'; type RoadmapAIChatHistoryProps = { roadmapId: string; @@ -71,7 +72,17 @@ export function RoadmapAIChatHistory(props: RoadmapAIChatHistoryProps) { ); return ( - + { + if (!isLoggedIn()) { + showLoginPopup(); + return; + } + + setIsOpen(open); + }} + > Chat History