Files
accounted/app/(dashboard)/@settingsModal/(.)settings/[[...section]]/page.tsx
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

17 lines
747 B
TypeScript

import { SettingsModal } from '@/components/settings/SettingsModal'
// Intercepting route: catches in-app soft navigations to /settings and
// /settings/<section> and renders them as a modal in the `@settings` slot,
// leaving the page the user came from mounted in the background `children` slot.
// Hard loads / refreshes / pasted deep-links bypass interception and resolve to
// the real full-page settings route instead. The optional catch-all captures
// the bare /settings path (section === undefined → default in SettingsModal).
export default async function InterceptedSettingsModal({
params,
}: {
params: Promise<{ section?: string[] }>
}) {
const { section } = await params
return <SettingsModal sectionId={section?.[0]} />
}