Skip to content

Commit 74e7a58

Browse files
committed
add:remove a navbar route
1 parent 0b041a4 commit 74e7a58

File tree

1 file changed

+20
-37
lines changed

1 file changed

+20
-37
lines changed

components/navbar.tsx

+20-37
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
"use client";
22
import { ModeToggle } from "@/components/theme-toggle";
3-
43
import Link from "next/link";
54
import { Button, buttonVariants } from "./ui/button";
65
import { Icons } from "./icon";
76
import Anchor from "./anchor";
87
import { SheetLeftbar } from "./leftbar";
9-
108
import { SheetClose } from "@/components/ui/sheet";
11-
129
import Search from "./search";
1310

1411
export const NAVLINKS = [
@@ -17,11 +14,6 @@ export const NAVLINKS = [
1714
href: "/docs",
1815
},
1916

20-
{
21-
title: "Components",
22-
href: "/docs",
23-
},
24-
2517
{
2618
title: "Examples",
2719
href: "/examples",
@@ -34,10 +26,6 @@ export const NAVLINKS = [
3426
title: "Gift a Component",
3527
href: "/giftacomponent",
3628
},
37-
{
38-
title: "Admin",
39-
href: "/view-pending",
40-
},
4129
];
4230

4331
export function Navbar() {
@@ -60,32 +48,30 @@ export function Navbar() {
6048
<div className="flex items-center gap-2">
6149
<div className="flex items-center gap-2">
6250
<div className="md:block hidden">
63-
<Link href="mailto:hey@arihantcodes.in">
64-
<Button className="rounded-xl" >
65-
Work With Me ✨
66-
</Button>
51+
<Link href="mailto:hey@arihantcodes.in">
52+
<Button className="rounded-xl">Work With Me ✨</Button>
6753
</Link>
6854
</div>
69-
<div className='hidden md:flex'>
55+
<div className="hidden md:flex">
7056
<Search />
7157
</div>
7258
<div>
73-
<Link
74-
href="https://github.com/arihantcodes/spectrum-ui"
75-
className={buttonVariants({ variant: "ghost", size: "icon" })}
76-
>
77-
<Icons.gitHub className="icon-class w-4" />
78-
</Link>
79-
<Link
80-
href="https://x.com/arihantcodes"
81-
className={buttonVariants({
82-
variant: "ghost",
83-
size: "icon",
84-
})}
85-
>
86-
<Icons.twitter className="icon-class w-3" />
87-
</Link>
88-
<ModeToggle />
59+
<Link
60+
href="https://github.com/arihantcodes/spectrum-ui"
61+
className={buttonVariants({ variant: "ghost", size: "icon" })}
62+
>
63+
<Icons.gitHub className="icon-class w-4" />
64+
</Link>
65+
<Link
66+
href="https://x.com/arihantcodes"
67+
className={buttonVariants({
68+
variant: "ghost",
69+
size: "icon",
70+
})}
71+
>
72+
<Icons.twitter className="icon-class w-3" />
73+
</Link>
74+
<ModeToggle />
8975
</div>
9076
</div>
9177
</div>
@@ -100,10 +86,7 @@ export function Logo() {
10086
<Link href="/" className="flex items-center gap-2">
10187
<Icons.logo className="icon-class w-2" />
10288

103-
<h2 className="text-base md:text-lg font-bold">
104-
Spectrum UI
105-
</h2>
106-
89+
<h2 className="text-base md:text-lg font-bold">Spectrum UI</h2>
10790
</Link>
10891
);
10992
}

0 commit comments

Comments
 (0)