Panel Navbar Update
This commit is contained in:
@@ -1,14 +1,13 @@
|
|||||||
import { Bell, User } from "lucide-react"
|
import { Bell } from "lucide-react"
|
||||||
|
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
DropdownMenu,
|
SignInButton,
|
||||||
DropdownMenuContent,
|
SignedIn,
|
||||||
DropdownMenuItem,
|
SignedOut,
|
||||||
DropdownMenuLabel,
|
UserButton
|
||||||
DropdownMenuSeparator,
|
} from '@clerk/nextjs';
|
||||||
DropdownMenuTrigger,
|
|
||||||
} from "@/components/ui/dropdown-menu"
|
|
||||||
|
|
||||||
import { Menu } from "lucide-react"
|
import { Menu } from "lucide-react"
|
||||||
import { SidebarTrigger } from "@/components/ui/sidebar"
|
import { SidebarTrigger } from "@/components/ui/sidebar"
|
||||||
@@ -22,7 +21,7 @@ export default function Navbar() {
|
|||||||
<div className="container mx-auto px-6 py-3">
|
<div className="container mx-auto px-6 py-3">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<SidebarTrigger className="text-gray-200 focus:outline-none focus:text-gray-300">
|
<SidebarTrigger className="text-gray-200 focus:outline-none focus:text-gray-300 dark:focus:text-gray-700">
|
||||||
<Menu className="h-6 w-6" />
|
<Menu className="h-6 w-6" />
|
||||||
</SidebarTrigger>
|
</SidebarTrigger>
|
||||||
<span className="ml-4 text-xl font-semibold">My Dashboard</span>
|
<span className="ml-4 text-xl font-semibold">My Dashboard</span>
|
||||||
@@ -32,21 +31,12 @@ export default function Navbar() {
|
|||||||
<Button variant="ghost" size="icon">
|
<Button variant="ghost" size="icon">
|
||||||
<Bell className="h-5 w-5" />
|
<Bell className="h-5 w-5" />
|
||||||
</Button>
|
</Button>
|
||||||
<DropdownMenu>
|
|
||||||
<DropdownMenuTrigger asChild>
|
|
||||||
<Button variant="ghost" size="icon">
|
|
||||||
<User className="h-5 w-5" />
|
|
||||||
</Button>
|
|
||||||
</DropdownMenuTrigger>
|
|
||||||
<DropdownMenuContent align="end">
|
|
||||||
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
||||||
<DropdownMenuSeparator />
|
|
||||||
<DropdownMenuItem>Profile</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem>Settings</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem>Sign out</DropdownMenuItem>
|
|
||||||
</DropdownMenuContent>
|
|
||||||
</DropdownMenu>
|
|
||||||
<ModeToggle />
|
<ModeToggle />
|
||||||
|
<div className="bg-primary text-primary-foreground shadow hover:bg-primary/90 px-4 py-2 rounded-md mx-2">
|
||||||
|
<SignedIn>
|
||||||
|
<UserButton />
|
||||||
|
</SignedIn>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
import { Bell, User } from "lucide-react"
|
import { Bell } from "lucide-react"
|
||||||
|
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
DropdownMenu,
|
SignInButton,
|
||||||
DropdownMenuContent,
|
SignedIn,
|
||||||
DropdownMenuItem,
|
SignedOut,
|
||||||
DropdownMenuLabel,
|
UserButton
|
||||||
DropdownMenuSeparator,
|
} from '@clerk/nextjs';
|
||||||
DropdownMenuTrigger,
|
|
||||||
} from "@/components/ui/dropdown-menu"
|
|
||||||
|
|
||||||
import { Menu } from "lucide-react"
|
import { Menu } from "lucide-react"
|
||||||
import { SidebarTrigger } from "@/components/ui/sidebar"
|
import { SidebarTrigger } from "@/components/ui/sidebar"
|
||||||
@@ -22,7 +21,7 @@ export default function Navbar() {
|
|||||||
<div className="container mx-auto px-6 py-3">
|
<div className="container mx-auto px-6 py-3">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<SidebarTrigger className="text-gray-200 focus:outline-none focus:text-gray-300">
|
<SidebarTrigger className="text-gray-200 focus:outline-none focus:text-gray-300 dark:focus:text-gray-700">
|
||||||
<Menu className="h-6 w-6" />
|
<Menu className="h-6 w-6" />
|
||||||
</SidebarTrigger>
|
</SidebarTrigger>
|
||||||
<span className="ml-4 text-xl font-semibold">My Dashboard</span>
|
<span className="ml-4 text-xl font-semibold">My Dashboard</span>
|
||||||
@@ -32,21 +31,12 @@ export default function Navbar() {
|
|||||||
<Button variant="ghost" size="icon">
|
<Button variant="ghost" size="icon">
|
||||||
<Bell className="h-5 w-5" />
|
<Bell className="h-5 w-5" />
|
||||||
</Button>
|
</Button>
|
||||||
<DropdownMenu>
|
|
||||||
<DropdownMenuTrigger asChild>
|
|
||||||
<Button variant="ghost" size="icon">
|
|
||||||
<User className="h-5 w-5" />
|
|
||||||
</Button>
|
|
||||||
</DropdownMenuTrigger>
|
|
||||||
<DropdownMenuContent align="end">
|
|
||||||
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
||||||
<DropdownMenuSeparator />
|
|
||||||
<DropdownMenuItem>Profile</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem>Settings</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem>Sign out</DropdownMenuItem>
|
|
||||||
</DropdownMenuContent>
|
|
||||||
</DropdownMenu>
|
|
||||||
<ModeToggle />
|
<ModeToggle />
|
||||||
|
<div className="bg-primary text-primary-foreground shadow hover:bg-primary/90 px-4 py-2 rounded-md mx-2">
|
||||||
|
<SignedIn>
|
||||||
|
<UserButton />
|
||||||
|
</SignedIn>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user