mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
fix(ui): drop duplicate page-level EnforcementBanner on Tools (PAP-10790)
OverviewTab and RuntimeTab each render their own EnforcementBanner (info data-driven / warning trust-tier respectively), so the page-level banner in ToolsAccess stacked a second identical info banner above the Overview metrics and above Runtime's warning. Move banner ownership fully into the tabs and remove the ToolsAccess-level call + now-unused import. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
f203d1a0d8
commit
452a72f180
1 file changed
-2
@@ -17,7 +17,6 @@ import { useCompany } from "@/context/CompanyContext";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { queryKeys } from "@/lib/queryKeys";
|
||||
import { toolsApi } from "@/api/tools";
|
||||
import { EnforcementBanner } from "@/components/EnforcementBanner";
|
||||
import { OverviewTab } from "./OverviewTab";
|
||||
import { ApplicationsTab } from "./ApplicationsTab";
|
||||
import { ConnectionsTab } from "./ConnectionsTab";
|
||||
@@ -96,7 +95,6 @@ export function ToolsAccess() {
|
||||
<ClipboardList className="h-5 w-5 text-muted-foreground" />
|
||||
<h1 className="text-xl font-bold text-foreground">Tools & Access</h1>
|
||||
</div>
|
||||
<EnforcementBanner companyId={selectedCompanyId} />
|
||||
|
||||
<nav className="-mx-1 flex gap-1 overflow-x-auto whitespace-nowrap border-b border-border px-1">
|
||||
{TABS.map((tab) => {
|
||||
|
||||
Reference in new issue
Block a user