chore: make Stays title prop optional
This commit is contained in:
@@ -54,7 +54,7 @@ export default function Content({ user, lang, content }: ContentProps) {
|
||||
const componentProps = {
|
||||
lang,
|
||||
title: item.dynamic_content.title,
|
||||
// TODO: rename preamble to subtitle in Contentstack
|
||||
// TODO: rename preamble to subtitle in Contentstack?
|
||||
subtitle: item.dynamic_content.preamble,
|
||||
...(link && { link }),
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import type { Page } from "@/types/components/myPages/myStays/page"
|
||||
|
||||
export default function PreviousStays({
|
||||
lang,
|
||||
title = "", // TODO: Should the title be optional?
|
||||
title,
|
||||
subtitle,
|
||||
link,
|
||||
}: AccountPageComponentProps) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { AccountPageComponentProps } from "@/types/components/myPages/myPage/acc
|
||||
|
||||
export default async function UpcomingStays({
|
||||
lang,
|
||||
title = "", // TODO: Should this be optional?
|
||||
title,
|
||||
subtitle,
|
||||
link,
|
||||
}: AccountPageComponentProps) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import type { Page } from "@/types/components/myPages/myStays/page"
|
||||
|
||||
export default function UpcomingStays({
|
||||
lang,
|
||||
title = "", // TODO: Should this be optional?
|
||||
title,
|
||||
subtitle,
|
||||
link,
|
||||
}: AccountPageComponentProps) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export type HeaderProps = {
|
||||
title: string
|
||||
title?: string
|
||||
subtitle?: string
|
||||
link?: { href: string; text: string }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user