feat(WEB-250): overview hero final ui

This commit is contained in:
Simon Emanuelsson
2024-05-24 10:13:24 +02:00
parent f884383c3c
commit 16b817f469
164 changed files with 6262 additions and 990 deletions

View File

@@ -1,13 +1,13 @@
import { _ } from "@/lib/translation"
import Title from "@/components/Title"
import Title from "@/components/TempDesignSystem/Title"
import styles from "./emptyPreviousStays.module.css"
export default function EmptyPreviousStaysBlock() {
return (
<section className={styles.container}>
<Title level="h3" as="h5" uppercase>
<Title as="h5" level="h3">
{_("You have no previous stays.")}
</Title>
</section>

View File

@@ -12,8 +12,7 @@ import ShowMoreButton from "../ShowMoreButton"
import StayCard from "../StayCard"
import EmptyPreviousStaysBlock from "./EmptyPreviousStays"
import { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage"
import type { Page } from "@/types/components/myPages/stays/page"
import type { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage"
export default function PreviousStays({
lang,
@@ -25,7 +24,7 @@ export default function PreviousStays({
trpc.user.stays.previous.useInfiniteQuery(
{},
{
getNextPageParam: (lastPage: Page) => lastPage.nextCursor,
getNextPageParam: (lastPage) => lastPage.nextCursor,
}
)