TASKS-1832
This commit is contained in:
@@ -136,7 +136,7 @@ export type ComponentContent =
|
||||
export type BlockData = ComponentContent['data']
|
||||
|
||||
export interface SiteMenu {
|
||||
title: string
|
||||
title?: string
|
||||
items: NavigationLink[]
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ export interface SiteSettingsContent {
|
||||
ctaItems: NavigationLink[]
|
||||
}
|
||||
footer: {
|
||||
copyright: string
|
||||
copyright?: string
|
||||
menus: SiteMenu[]
|
||||
}
|
||||
legal: {
|
||||
privacyPath: string
|
||||
termsPath: string
|
||||
privacyPath?: string
|
||||
termsPath?: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ const componentContentSchema = () =>
|
||||
|
||||
const siteMenuSchema = () =>
|
||||
vine.object({
|
||||
title: vine.string(),
|
||||
title: vine.string().optional(),
|
||||
items: vine.array(navigationLinkSchema()),
|
||||
})
|
||||
|
||||
@@ -175,12 +175,12 @@ const siteSettingsContentSchema = () =>
|
||||
ctaItems: vine.array(navigationLinkSchema()),
|
||||
}),
|
||||
footer: vine.object({
|
||||
copyright: vine.string(),
|
||||
copyright: vine.string().optional(),
|
||||
menus: vine.array(siteMenuSchema()),
|
||||
}),
|
||||
legal: vine.object({
|
||||
privacyPath: vine.string(),
|
||||
termsPath: vine.string(),
|
||||
privacyPath: vine.string().optional(),
|
||||
termsPath: vine.string().optional(),
|
||||
}),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user