Skip to content

Commit 0ff62cc

Browse files
refactor: simplify Navbar component and remove unnecessary elements
- Removed the Navbar from ChatLayoutContent to streamline the layout. - Updated Navbar to only include the ThemeToggle, removing links to source code and deployment options. This change enhances the user interface by focusing on essential features.
1 parent 013bba4 commit 0ff62cc

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

app/(chat)/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function ChatLayoutContent({ children }: { children: React.ReactNode }) {
4949
onConversationSelect={handleConversationSelect}
5050
/>
5151
<SidebarInset>
52-
<Navbar />
5352
{children}
5453
</SidebarInset>
5554
</SidebarProvider>

components/navbar.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
"use client";
22

3-
import { Button } from "./ui/button";
4-
import { GitIcon, VercelIcon } from "../app/features/conversation/components/icons";
5-
import Link from "next/link";
63
import { ThemeToggle } from "./theme-toggle";
74

85
export const Navbar = () => {
96
return (
10-
<div className="p-2 flex flex-row gap-2 items-center justify-between">
11-
<Link href="https://github.com/vercel-labs/ai-sdk-preview-python-streaming">
12-
<Button variant="outline">
13-
<GitIcon /> View Source Code
14-
</Button>
15-
</Link>
16-
17-
<div className="flex flex-row gap-2 items-center">
18-
<ThemeToggle />
19-
<Link href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-sdk-preview-python-streaming&env=OPENAI_API_KEY%2CVERCEL_FORCE_PYTHON_STREAMING&envDescription=API+keys+needed+for+application&envLink=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-sdk-preview-python-streaming%2Fblob%2Fmain%2F.env.example&teamSlug=vercel-labs">
20-
<Button>
21-
<VercelIcon />
22-
Deploy with Vercel
23-
</Button>
24-
</Link>
25-
</div>
7+
<div className="p-2 flex flex-row gap-2 items-center justify-end">
8+
<ThemeToggle />
269
</div>
2710
);
2811
};

0 commit comments

Comments
 (0)