File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/settings/billing/credit-usage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import {
2+ SettingsHeaderProvider ,
3+ SettingsHeaderShell ,
4+ } from '@/app/workspace/[workspaceId]/settings/components/settings-header/settings-header'
5+
6+ /**
7+ * Credit usage is a static route outside `[section]`, so it does not inherit
8+ * `SettingsSectionLayout`'s chrome. `CreditUsageView` and its loading fallback
9+ * render through `SettingsPanel`, which only registers header config into the
10+ * `SettingsHeaderProvider` context — without this shell the page has no header
11+ * bar, title, or scroll region.
12+ */
13+ export default function CreditUsageLayout ( { children } : { children : React . ReactNode } ) {
14+ return (
15+ < SettingsHeaderProvider >
16+ < SettingsHeaderShell > { children } </ SettingsHeaderShell >
17+ </ SettingsHeaderProvider >
18+ )
19+ }
You can’t perform that action at this time.
0 commit comments