Refactor: Move New Chat button
This commit is contained in:
@@ -42,16 +42,8 @@ export const Layout = ({ children, activeTab, onTabChange }: LayoutProps) => {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* New Chat Button */}
|
{/* Navigation Tabs */}
|
||||||
<div className="p-4">
|
<nav className="flex-1 px-3 py-2 space-y-1">
|
||||||
<Button className="w-full gap-2 cyber-glow" variant="default">
|
|
||||||
<Plus className="w-4 h-4" />
|
|
||||||
Novo Chat
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Navigation Tabs */}
|
|
||||||
<nav className="flex-1 px-3 py-2 space-y-1">
|
|
||||||
{tabs.map((tab) => {
|
{tabs.map((tab) => {
|
||||||
const Icon = tab.icon;
|
const Icon = tab.icon;
|
||||||
const isActive = activeTab === tab.id;
|
const isActive = activeTab === tab.id;
|
||||||
@@ -106,13 +98,6 @@ export const Layout = ({ children, activeTab, onTabChange }: LayoutProps) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* New Chat Button - Icon only */}
|
|
||||||
<div className="p-3">
|
|
||||||
<Button size="icon" className="w-full cyber-glow">
|
|
||||||
<Plus className="w-4 h-4" />
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Navigation Icons */}
|
{/* Navigation Icons */}
|
||||||
<nav className="flex-1 px-2 py-2 space-y-1">
|
<nav className="flex-1 px-2 py-2 space-y-1">
|
||||||
{tabs.map((tab) => {
|
{tabs.map((tab) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Search, Folder, FolderPlus, MessageSquare, MoreVertical, Trash2, Edit, FolderInput, ChevronLeft, ChevronRight } from "lucide-react";
|
import { Search, Folder, FolderPlus, MessageSquare, MoreVertical, Trash2, Edit, FolderInput, ChevronLeft, ChevronRight, Plus } from "lucide-react";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { ScrollArea } from "@/components/ui/scroll-area";
|
import { ScrollArea } from "@/components/ui/scroll-area";
|
||||||
@@ -218,6 +218,11 @@ export const ChatSidebar = ({ isCollapsed, onToggleCollapse }: ChatSidebarProps)
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<Button className="w-full gap-2 cyber-glow" variant="default">
|
||||||
|
<Plus className="w-4 h-4" />
|
||||||
|
Novo Chat
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Dialog open={isCreateFolderOpen} onOpenChange={setIsCreateFolderOpen}>
|
<Dialog open={isCreateFolderOpen} onOpenChange={setIsCreateFolderOpen}>
|
||||||
<DialogTrigger asChild>
|
<DialogTrigger asChild>
|
||||||
<Button variant="outline" className="w-full gap-2" size="sm">
|
<Button variant="outline" className="w-full gap-2" size="sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user