Merge pull request #5918 from supabase/chore/misc-fixes-140322

Chore/misc fixes 140322
This commit is contained in:
Jonathan Summers-Muir authored and GitHub committed 2022-03-14 14:59:31 +01:00
commit 5f5792e656
4 files changed
+15 -11

No files matched your search

@@ -51,7 +51,6 @@ const AccessTokenList = observer(() => {
) : (
<>
{tokens?.map((x: AccessToken) => {
console.log('x: ', x)
return (
<Table.tr key={x.token_alias}>
<Table.td>{x.token_alias}</Table.td>
@@ -74,13 +74,13 @@ const AccountLayout = ({ children, title, breadcrumbs }: any) => {
href: `/account/me`,
key: `/account/me`,
},
{
isActive: router.pathname == `/account/tokens`,
icon: '/img/user.svg',
label: 'Tokens',
href: `/account/tokens`,
key: `/account/tokens`,
},
// {
// isActive: router.pathname == `/account/tokens`,
// icon: '/img/user.svg',
// label: 'Tokens',
// href: `/account/tokens`,
// key: `/account/tokens`,
// },
logoutLink,
],
},
@@ -168,8 +168,14 @@ const SidebarItem: FC<any> = ({ id, label, href, isActive, isSubitem, onClick, e
className="cursor-pointer flex space-x-2 items-center outline-none focus-visible:ring-1 ring-scale-1200 focus-visible:z-10 group py-1 font-normal border-scale-500 group-hover:border-scale-900"
onClick={onClick || (() => {})}
>
<span className="transition truncate text-sm text-scale-900 group-hover:text-scale-1100">{external && <IconArrowUpRight size={'tiny'} />}</span>
<span className="transition truncate text-sm w-full text-scale-1100 group-hover:text-scale-1200">{isSubitem ? <p>{label}</p> : label}</span>
{external && (
<span className="transition truncate text-sm text-scale-900 group-hover:text-scale-1100">
<IconArrowUpRight size={'tiny'} />
</span>
)}
<span className="transition truncate text-sm w-full text-scale-1100 group-hover:text-scale-1200">
{isSubitem ? <p>{label}</p> : label}
</span>
</button>
</a>
</Link>
-1
View File
@@ -19,7 +19,6 @@ export async function post<T = any>(
headers,
...otherOptions,
})
console.log('response.ok: ', response.ok, response)
if (!response.ok) return handleResponseError(response, requestId)
return handleResponse(response, requestId)
} catch (error) {