@@ -100,64 +100,67 @@ const Navbar = () => {
100100
101101 < div className = "flex items-center justify-end gap-2 sm:gap-6 sm:min-w-[160px]" >
102102 < div className = "flex items-center ml-1 sm:ml-4" >
103+ < Button variant = "link" asChild >
104+ < Link href = "https://supabase.github.io/dbdev/" target = "blank" >
105+ Docs
106+ </ Link >
107+ </ Button >
108+
103109 { user ? (
104- < DropdownMenu >
105- < DropdownMenuTrigger >
106- < AvatarWrapper size = "md" />
107- </ DropdownMenuTrigger >
108-
109- < DropdownMenuContent >
110- < DropdownMenuLabel > Logged in as</ DropdownMenuLabel >
111- < DropdownMenuItem asChild >
112- < Link
113- href = { `/${ user ?. user_metadata . handle } ` }
114- className = "flex items-center cursor-pointer"
115- >
116- { displayName }
117- </ Link >
118- </ DropdownMenuItem >
119- < DropdownMenuSeparator />
120- < DropdownMenuItem asChild >
121- < Link
122- href = { `/${ user ?. user_metadata . handle } /_/access-tokens` }
123- className = "flex items-center cursor-pointer"
124- >
125- Access Tokens
126- </ Link >
127- </ DropdownMenuItem >
128-
129- { isOrganizationsSuccess && organizations . length > 0 && (
130- < DropdownMenuLabel > Organizations</ DropdownMenuLabel >
131- ) }
132- { isOrganizationsSuccess &&
133- organizations . map ( ( org ) => (
134- < DropdownMenuItem key = { org . id } asChild >
135- < Link
136- href = { `/${ org . handle } ` }
137- className = "cursor-pointer"
138- >
139- { org . display_name } ({ org . handle } )
140- </ Link >
141- </ DropdownMenuItem >
142- ) ) }
143-
144- < DropdownMenuItem asChild >
145- < button
146- onClick = { handleSignOut }
147- className = "w-full cursor-pointer"
148- >
149- Sign out
150- </ button >
151- </ DropdownMenuItem >
152- </ DropdownMenuContent >
153- </ DropdownMenu >
110+ < div className = "flex items-center ml-1 sm:ml-4" >
111+ < DropdownMenu >
112+ < DropdownMenuTrigger >
113+ < AvatarWrapper size = "md" />
114+ </ DropdownMenuTrigger >
115+
116+ < DropdownMenuContent >
117+ < DropdownMenuLabel > Logged in as</ DropdownMenuLabel >
118+ < DropdownMenuItem asChild >
119+ < Link
120+ href = { `/${ user ?. user_metadata . handle } ` }
121+ className = "flex items-center cursor-pointer"
122+ >
123+ { displayName }
124+ </ Link >
125+ </ DropdownMenuItem >
126+ < DropdownMenuSeparator />
127+ < DropdownMenuItem asChild >
128+ < Link
129+ href = { `/${ user ?. user_metadata . handle } /_/access-tokens` }
130+ className = "flex items-center cursor-pointer"
131+ >
132+ Access Tokens
133+ </ Link >
134+ </ DropdownMenuItem >
135+
136+ { isOrganizationsSuccess && organizations . length > 0 && (
137+ < DropdownMenuLabel > Organizations</ DropdownMenuLabel >
138+ ) }
139+ { isOrganizationsSuccess &&
140+ organizations . map ( ( org ) => (
141+ < DropdownMenuItem key = { org . id } asChild >
142+ < Link
143+ href = { `/${ org . handle } ` }
144+ className = "cursor-pointer"
145+ >
146+ { org . display_name } ({ org . handle } )
147+ </ Link >
148+ </ DropdownMenuItem >
149+ ) ) }
150+
151+ < DropdownMenuItem asChild >
152+ < button
153+ onClick = { handleSignOut }
154+ className = "w-full cursor-pointer"
155+ >
156+ Sign out
157+ </ button >
158+ </ DropdownMenuItem >
159+ </ DropdownMenuContent >
160+ </ DropdownMenu >
161+ </ div >
154162 ) : (
155- < div className = "flex items-center " >
156- < Button variant = "link" asChild >
157- < Link href = "https://supabase.github.io/dbdev/" target = "blank" >
158- Docs
159- </ Link >
160- </ Button >
163+ < div className = "flex items-center" >
161164 < Button variant = "link" asChild >
162165 < Link href = "/sign-in" > Login</ Link >
163166 </ Button >
0 commit comments