mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-03 20:41:07 +02:00
refactor: remove unused button for new chat in the App component
This commit is contained in:
parent
14bcd5d888
commit
ce30c05604
1 changed files with 1 additions and 17 deletions
|
|
@ -6,7 +6,7 @@ import type { LanguageModelUsage, ToolUIPart } from 'ai';
|
||||||
import './App.css'
|
import './App.css'
|
||||||
import z from 'zod';
|
import z from 'zod';
|
||||||
import { Button } from './components/ui/button';
|
import { Button } from './components/ui/button';
|
||||||
import { CheckIcon, LoaderIcon, ArrowUp, PanelLeftIcon, PanelRightIcon, SquarePen, Square } from 'lucide-react';
|
import { CheckIcon, LoaderIcon, ArrowUp, PanelLeftIcon, PanelRightIcon, Square } from 'lucide-react';
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { MarkdownEditor } from './components/markdown-editor';
|
import { MarkdownEditor } from './components/markdown-editor';
|
||||||
import { ChatInputBar } from './components/chat-button';
|
import { ChatInputBar } from './components/chat-button';
|
||||||
|
|
@ -1875,22 +1875,6 @@ function App() {
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!isGraphOpen && (
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
size="sm"
|
|
||||||
onClick={() => {
|
|
||||||
handleNewChat()
|
|
||||||
if (selectedPath) {
|
|
||||||
setIsChatSidebarOpen(true)
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
className="titlebar-no-drag text-foreground gap-1.5"
|
|
||||||
>
|
|
||||||
<SquarePen className="size-4" />
|
|
||||||
New Chat
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
{!selectedPath && isGraphOpen && (
|
{!selectedPath && isGraphOpen && (
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue