Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Hide billing URL in developer settings for now
Vasek Mlejnsky7360cfd1878d
diff --git a/apps/web/src/app/(dashboard)/dashboard/page.tsx b/apps/web/src/app/(dashboard)/dashboard/page.tsxindex e8abf1e21..872b149c5 100644--- a/apps/web/src/app/(dashboard)/dashboard/page.tsx+++ b/apps/web/src/app/(dashboard)/dashboard/page.tsx@@ -230,18 +230,16 @@ const MenuItem = ({onClick: () => void}) => (<div- className={`flex w-fit md:w-full hover:bg-[#995100] hover:cursor-pointer rounded-lg items-center p-2 space-x-2 ${- selected ? 'bg-[#995100]' : ''- }`}+ className={`flex w-fit md:w-full hover:bg-[#995100] hover:cursor-pointer rounded-lg items-center p-2 space-x-2 ${selected ? 'bg-[#995100]' : ''+ }`}onClick={onClick}><Icon width={20} height={20} /><p- className={`${- !label || !window.matchMedia('(min-width: 768)').matches+ className={`${!label || !window.matchMedia('(min-width: 768)').matches? 'sr-only sm:not-sr-only': ''- }`}+ }`}>{label[0].toUpperCase() + label.slice(1)}</p>@@ -307,7 +305,6 @@ function MainContent({return (<DeveloperContentapiUrlState={apiUrlState}- billingUrlState={billingUrlState}/>)default:diff --git a/apps/web/src/components/Dashboard/Developer.tsx b/apps/web/src/components/Dashboard/Developer.tsxindex e4ea25bfe..b3bd86b59 100644--- a/apps/web/src/components/Dashboard/Developer.tsx+++ b/apps/web/src/components/Dashboard/Developer.tsx@@ -3,17 +3,13 @@import { Button } from '../Button'const defaultAPIUrl = process.env.NEXT_PUBLIC_API_URL || ''-const defaultBillingUrl = process.env.NEXT_PUBLIC_BILLING_API_URL || ''export const DeveloperContent = ({apiUrlState,- billingUrlState,}: {apiUrlState: [string, (value: string) => void]- billingUrlState: [string, (value: string) => void]}) => {const [apiUrl, setApiUrl] = apiUrlState- const [billingUrl, setBillingUrl] = billingUrlStatefunction isUrl(url: string) {try {@@ -71,25 +67,6 @@ export const DeveloperContent = ({Reset to default</Button></div>-- <span className="font-bold text-neutral-300 pb-2">Billing URL</span>- <span className="text-sm text-neutral-300 pb-4">- Customize E2B Billing API URL.- </span>- <div className="flex w-full items-center space-x-2 pb-4">- <input- type="text"- className="w-1/2 border border-white/10 text-sm focus:outline-none outline-none rounded-md p-2"- value={billingUrl}- onChange={(e) => setBillingUrl(e.target.value)}- />- <Button- variant="desctructive"- onClick={() => setBillingUrl(defaultBillingUrl)}- >- Reset to default- </Button>- </div></div></div>)