mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
fix: adjust ThemeToggle positioning and add Dataroom link for business role
This commit is contained in:
parent
2d67eedc59
commit
79d5d9615d
@ -110,7 +110,9 @@ export function NavigationBar() {
|
||||
</NavigationMenu>
|
||||
|
||||
<div className="flex gap-2 pl-2">
|
||||
<ThemeToggle />
|
||||
<div className="mt-1">
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
<Separator orientation="vertical" className="mx-3" />
|
||||
<ProfileBar />
|
||||
</div>
|
||||
|
||||
@ -56,11 +56,7 @@ const AuthenticatedComponents = ({ uid }: { uid: string }) => {
|
||||
</Link>
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
variant="outline"
|
||||
size="icon"
|
||||
className="overflow-hidden rounded-full"
|
||||
>
|
||||
<Button variant="outline" size="icon" className="overflow-hidden rounded-full">
|
||||
<Avatar>
|
||||
<AvatarImage src="https://api.dicebear.com/9.x/pixel-art/svg" />
|
||||
<AvatarFallback>1</AvatarFallback>
|
||||
@ -79,6 +75,11 @@ const AuthenticatedComponents = ({ uid }: { uid: string }) => {
|
||||
<Link href="/admin">Admin</Link>
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
{data != null && data != undefined && data.role === "business" && (
|
||||
<DropdownMenuItem>
|
||||
<Link href="/dataroom/manage">Dataroom</Link>
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem>
|
||||
<LogoutButton />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user