mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
breakout new chat button from dropdown menu
This commit is contained in:
1 parent
a4271de370
commit
05100d295e
3 files changed
+25
-16
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user