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