breakout new chat button from dropdown menu

This commit is contained in:
lemonknowsall committed 2026-01-16 13:55:29 -08:00
1 parent a4271de370
commit 05100d295e
3 files changed
+25 -16

No files matched your search

-12
View File
@@ -7,7 +7,6 @@ import {
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
import {
MessageSquarePlus,
History,
Folder,
Copy,
@@ -22,7 +21,6 @@ import { useQueryClient } from '@tanstack/react-query';
interface ProjectTitleMenuProps {
projectId: string;
projectName: string;
onNewChat: () => void;
onGitHistory: () => void;
onDuplicate: () => void;
onDelete: () => void;
@@ -35,7 +33,6 @@ interface ProjectTitleMenuProps {
export function ProjectTitleMenu({
projectId,
projectName,
onNewChat,
onGitHistory,
onDuplicate,
onDelete,
@@ -109,15 +106,6 @@ export function ProjectTitleMenu({
Rollback
</DropdownMenuItem>
<DropdownMenuItem
onClick={onNewChat}
disabled={isAILoading}
className="gap-2"
>
<MessageSquarePlus className="h-4 w-4" />
New Chat
</DropdownMenuItem>
<DropdownMenuItem
onClick={onDuplicate}
disabled={isAnyLoading}