chore: clean up typings

This commit is contained in:
Arvid Norlin
2024-04-23 15:39:23 +02:00
parent b12ccfafef
commit 1e8f23de38
8 changed files with 71 additions and 66 deletions

View File

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

View File

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

View File

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

View File

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