- Updated routing for mail settings to redirect to the new settings layout. - Introduced new account layout and section components for better organization. - Replaced hardcoded paths with constants for account and mail settings to enhance maintainability. - Removed deprecated mail settings layout and integrated it into the new settings structure. - Enhanced user experience by streamlining navigation between account and mail settings.
25 lines
702 B
TypeScript
25 lines
702 B
TypeScript
import { MailSettingsLayout } from "@/components/gmail/settings/mail-settings-layout"
|
|
import { SettingsAppShell } from "@/components/gmail/settings/settings-app-shell"
|
|
import { SuiteThemeShell } from "@/components/suite/suite-theme-shell"
|
|
import type { Metadata } from "next"
|
|
import { suitePageMetadata } from "@/lib/suite/page-metadata"
|
|
|
|
export const metadata: Metadata = suitePageMetadata({
|
|
app: "mail",
|
|
title: "Réglages",
|
|
})
|
|
|
|
export default function SettingsRootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<SuiteThemeShell>
|
|
<SettingsAppShell>
|
|
<MailSettingsLayout>{children}</MailSettingsLayout>
|
|
</SettingsAppShell>
|
|
</SuiteThemeShell>
|
|
)
|
|
}
|