Skip to content

Commit e04a4fa

Browse files
authored
fix(settings): restore header shell on workspace credit-usage page (#5663)
1 parent 8d7d590 commit e04a4fa

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/settings/billing/credit-usage
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

0 commit comments

Comments
 (0)