Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into km/migrate-to-gotrue

Kang Ming0e5623c5bfff
diff --cc studio/components/layouts/AccountLayout/WithSidebar.tsx
index 1079d22a58d,d51262c1521..5b98e223acc
--- a/studio/components/layouts/AccountLayout/WithSidebar.tsx
+++ b/studio/components/layouts/AccountLayout/WithSidebar.tsx
@@@ -143,26 -142,9 +143,26 @@@ const LinksWithoutHeaders: FC<any> = (
)
}
-const SidebarItem: FC<any> = ({ id, label, as, href, isActive, isSubitem, onClick, external }) => {
+const SidebarItem: FC<any> = ({ id, label, href, isActive, isSubitem, onClick, external }) => {
+ if (isUndefined(href)) {
+ return (
+ <Menu.Item
+ rounded
+ key={id}
+ style={{
+ marginLeft: isSubitem && '.5rem',
+ }}
+ active={isActive ? true : false}
+ onClick={onClick || (() => {})}
+ icon={external && <IconArrowUpRight size={'tiny'} />}
+ >
+ {isSubitem ? <Typography.Text small>{label}</Typography.Text> : label}
+ </Menu.Item>
+ )
+ }
+
return (
- <Link href={href}>
+ <Link href={href || ''}>
<a className="block" target={external ? '_blank' : '_self'}>
<Menu.Item
rounded