Add admin site settings sections and locale defaults
This commit is contained in:
+22
-2
@@ -2,8 +2,10 @@ import {
|
||||
FolderKanban,
|
||||
Globe2,
|
||||
ImageIcon,
|
||||
Languages,
|
||||
LayoutDashboard,
|
||||
Mail,
|
||||
Palette,
|
||||
PlusSquare,
|
||||
ShieldAlert,
|
||||
SwatchBook,
|
||||
@@ -20,6 +22,8 @@ type AdminNavigationCopy = {
|
||||
portfolio: string;
|
||||
media: string;
|
||||
siteSettings: string;
|
||||
brandSettings?: string;
|
||||
localizationSettings?: string;
|
||||
marquee?: string;
|
||||
smtp?: string;
|
||||
contactProtection?: string;
|
||||
@@ -39,6 +43,7 @@ export function getAdminNavigation(
|
||||
active: "overview" | "maintenance" | "ui-kit" | "portfolio" | "media" | "site-settings" | "smtp" | "marquee",
|
||||
smtpChild?: "settings" | "contact-protection",
|
||||
portfolioChild?: "overview" | "projects" | "new-project" | "categories",
|
||||
siteSettingsChild?: "brand" | "localization",
|
||||
): AdminNavItem[] {
|
||||
return [
|
||||
{
|
||||
@@ -67,9 +72,24 @@ export function getAdminNavigation(
|
||||
},
|
||||
{
|
||||
label: copy.siteSettings,
|
||||
href: getAdminAppPath("/site-settings"),
|
||||
href: getAdminAppPath("/site-settings/brand"),
|
||||
icon: Globe2,
|
||||
active: active === "site-settings",
|
||||
active: active === "site-settings" && !siteSettingsChild,
|
||||
expanded: active === "site-settings",
|
||||
children: [
|
||||
{
|
||||
label: copy.brandSettings ?? "Brand",
|
||||
href: getAdminAppPath("/site-settings/brand"),
|
||||
icon: Palette,
|
||||
active: siteSettingsChild === "brand",
|
||||
},
|
||||
{
|
||||
label: copy.localizationSettings ?? "Localization",
|
||||
href: getAdminAppPath("/site-settings/localization"),
|
||||
icon: Languages,
|
||||
active: siteSettingsChild === "localization",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: copy.marquee ?? "Marquee",
|
||||
|
||||
Reference in New Issue
Block a user