mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 20:26:44 +00:00
Show usage and billing tab on cloud only
This commit is contained in:
@@ -272,7 +272,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
|
|||||||
createNotification({ text: "Failed to create workspace", type: "error" });
|
createNotification({ text: "Failed to create workspace", type: "error" });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="dark hidden h-screen w-full flex-col overflow-x-hidden md:flex">
|
<div className="dark hidden h-screen w-full flex-col overflow-x-hidden md:flex">
|
||||||
@@ -604,16 +604,18 @@ export const AppLayout = ({ children }: LayoutProps) => {
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={`/org/${currentOrg?.id}/billing`} passHref>
|
{(window.location.origin.includes("https://app.infisical.com")) && (
|
||||||
<a>
|
<Link href={`/org/${currentOrg?.id}/billing`} passHref>
|
||||||
<MenuItem
|
<a>
|
||||||
isSelected={router.asPath === `/org/${currentOrg?.id}/billing`}
|
<MenuItem
|
||||||
icon="system-outline-103-coin-cash-monetization"
|
isSelected={router.asPath === `/org/${currentOrg?.id}/billing`}
|
||||||
>
|
icon="system-outline-103-coin-cash-monetization"
|
||||||
Usage & Billing
|
>
|
||||||
</MenuItem>
|
Usage & Billing
|
||||||
</a>
|
</MenuItem>
|
||||||
</Link>
|
</a>
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
<Link href={`/org/${currentOrg?.id}/settings`} passHref>
|
<Link href={`/org/${currentOrg?.id}/settings`} passHref>
|
||||||
<a>
|
<a>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
|||||||
Reference in New Issue
Block a user