mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-20 06:24: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>
|
</NavigationMenu>
|
||||||
|
|
||||||
<div className="flex gap-2 pl-2">
|
<div className="flex gap-2 pl-2">
|
||||||
<ThemeToggle />
|
<div className="mt-1">
|
||||||
|
<ThemeToggle />
|
||||||
|
</div>
|
||||||
<Separator orientation="vertical" className="mx-3" />
|
<Separator orientation="vertical" className="mx-3" />
|
||||||
<ProfileBar />
|
<ProfileBar />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -56,11 +56,7 @@ const AuthenticatedComponents = ({ uid }: { uid: string }) => {
|
|||||||
</Link>
|
</Link>
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<Button
|
<Button variant="outline" size="icon" className="overflow-hidden rounded-full">
|
||||||
variant="outline"
|
|
||||||
size="icon"
|
|
||||||
className="overflow-hidden rounded-full"
|
|
||||||
>
|
|
||||||
<Avatar>
|
<Avatar>
|
||||||
<AvatarImage src="https://api.dicebear.com/9.x/pixel-art/svg" />
|
<AvatarImage src="https://api.dicebear.com/9.x/pixel-art/svg" />
|
||||||
<AvatarFallback>1</AvatarFallback>
|
<AvatarFallback>1</AvatarFallback>
|
||||||
@ -79,6 +75,11 @@ const AuthenticatedComponents = ({ uid }: { uid: string }) => {
|
|||||||
<Link href="/admin">Admin</Link>
|
<Link href="/admin">Admin</Link>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
|
{data != null && data != undefined && data.role === "business" && (
|
||||||
|
<DropdownMenuItem>
|
||||||
|
<Link href="/dataroom/manage">Dataroom</Link>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
)}
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<LogoutButton />
|
<LogoutButton />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user