chore: clean up typings
This commit is contained in:
@@ -11,9 +11,11 @@ export default function Overview({ user, title }: OverviewProps) {
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
<header>
|
||||
<Title as="h3" level="h2" uppercase className={styles.title}>
|
||||
{title}
|
||||
</Title>
|
||||
{title && (
|
||||
<Title as="h3" level="h2" uppercase className={styles.title}>
|
||||
{title}
|
||||
</Title>
|
||||
)}
|
||||
</header>
|
||||
<section className={styles.overview}>
|
||||
<Friend user={user} />
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
"use client"
|
||||
|
||||
import { Lang } from "@/constants/languages"
|
||||
import { _ } from "@/lib/translation"
|
||||
import { trpc } from "@/lib/trpc/client"
|
||||
|
||||
import Container from "../Container"
|
||||
@@ -16,7 +14,7 @@ import type { Page } from "@/types/components/myPages/myStays/page"
|
||||
|
||||
export default function PreviousStays({
|
||||
lang,
|
||||
title,
|
||||
title = "", // TODO: Should the title be optional?
|
||||
subtitle,
|
||||
link,
|
||||
}: AccountPageComponentProps) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { AccountPageComponentProps } from "@/types/components/myPages/myPage/acc
|
||||
|
||||
export default async function UpcomingStays({
|
||||
lang,
|
||||
title,
|
||||
title = "", // TODO: Should this be optional?
|
||||
subtitle,
|
||||
link,
|
||||
}: AccountPageComponentProps) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import type { Page } from "@/types/components/myPages/myStays/page"
|
||||
|
||||
export default function UpcomingStays({
|
||||
lang,
|
||||
title,
|
||||
title = "", // TODO: Should this be optional?
|
||||
subtitle,
|
||||
link,
|
||||
}: AccountPageComponentProps) {
|
||||
|
||||
Reference in New Issue
Block a user