chore: make Stays title prop optional

This commit is contained in:
Arvid Norlin
2024-04-24 10:52:46 +02:00
parent 265f55ca9a
commit dd2127749a
5 changed files with 5 additions and 5 deletions

View File

@@ -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 }),
} }

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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 }
} }