Show Sign out when profile not loaded (fallback)
cgen-f447570e8935436384afb2df5a78b94b
This commit is contained in:
parent
afea50d396
commit
4e5278e49e
1 changed files with 11 additions and 0 deletions
|
|
@ -119,6 +119,17 @@ export default function Layout({ children }: LayoutProps) {
|
||||||
<Button variant="ghost" size="sm" className="hover-lift">
|
<Button variant="ghost" size="sm" className="hover-lift">
|
||||||
<Bell className="h-4 w-4" />
|
<Bell className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
|
{!profile && (
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
|
className="hover-lift"
|
||||||
|
onClick={() => signOut()}
|
||||||
|
>
|
||||||
|
<LogOut className="h-4 w-4 mr-2" />
|
||||||
|
Sign out
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
{profile && (
|
{profile && (
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue