Revert "breakout new chat button from dropdown menu"

This reverts commit 05100d295e.
This commit is contained in:
Alex Gleason committed 2026-01-21 13:48:02 -06:00
1 parent 5348ab1fda
commit add3c62bda
3 files changed
+16 -25

No files matched your search

+12
View File
@@ -7,6 +7,7 @@ import {
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
import {
MessageSquarePlus,
History,
Folder,
Copy,
@@ -21,6 +22,7 @@ import { useQueryClient } from '@tanstack/react-query';
interface ProjectTitleMenuProps {
projectId: string;
projectName: string;
onNewChat: () => void;
onGitHistory: () => void;
onDuplicate: () => void;
onDelete: () => void;
@@ -32,6 +34,7 @@ interface ProjectTitleMenuProps {
export function ProjectTitleMenu({
projectId,
projectName,
onNewChat,
onGitHistory,
onDuplicate,
onDelete,
@@ -104,6 +107,15 @@ 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}