mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(settings): restore header shell on workspace credit-usage page (#5663)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import {
|
||||
SettingsHeaderProvider,
|
||||
SettingsHeaderShell,
|
||||
} from '@/app/workspace/[workspaceId]/settings/components/settings-header/settings-header'
|
||||
|
||||
/**
|
||||
* Credit usage is a static route outside `[section]`, so it does not inherit
|
||||
* `SettingsSectionLayout`'s chrome. `CreditUsageView` and its loading fallback
|
||||
* render through `SettingsPanel`, which only registers header config into the
|
||||
* `SettingsHeaderProvider` context — without this shell the page has no header
|
||||
* bar, title, or scroll region.
|
||||
*/
|
||||
export default function CreditUsageLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<SettingsHeaderProvider>
|
||||
<SettingsHeaderShell>{children}</SettingsHeaderShell>
|
||||
</SettingsHeaderProvider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user