pass data properly to userbutton
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
import { UserButton } from "@clerk/nextjs"
|
||||
import { dark } from "@clerk/themes"
|
||||
import Image from "next/image"
|
||||
import Link from "next/link"
|
||||
import Logo from "@/assets/logo.svg"
|
||||
import DashboardNavbarSearch from "./search"
|
||||
import DashboardUserButton from "./userButton"
|
||||
import { User } from "@/lib/types"
|
||||
|
||||
export default function DashboardNavbar({ userId }: { userId: string }) {
|
||||
export default function DashboardNavbar({ userData }: { userData: User }) {
|
||||
return (
|
||||
<div className="h-16 px-4 w-full flex items-center justify-between border-b border-border">
|
||||
<div className="flex items-center space-x-4">
|
||||
@ -20,7 +19,7 @@ export default function DashboardNavbar({ userId }: { userId: string }) {
|
||||
</div>
|
||||
<div className="flex items-center space-x-4">
|
||||
<DashboardNavbarSearch />
|
||||
<DashboardUserButton userId={userId} />
|
||||
<DashboardUserButton userData={userData} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
Reference in New Issue
Block a user