feat(SW-176): filter in route

This commit is contained in:
Fredrik Thorsson
2024-09-03 15:18:38 +02:00
parent 87de043598
commit a3e540baa6
4 changed files with 18 additions and 40 deletions

View File

@@ -1,4 +1,3 @@
import { serverClient } from "@/lib/trpc/server"
import tempHotelData from "@/server/routers/hotels/tempHotelData.json"
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
@@ -16,7 +15,6 @@ import Caption from "@/components/TempDesignSystem/Text/Caption"
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
import { getLang } from "@/i18n/serverContext"
import styles from "./hotelCard.module.css"
@@ -90,7 +88,7 @@ export default async function HotelCard({
{intl.formatMessage({ id: "Public price from" })}
</Chip>
<Caption color="textMediumContrast">
{price?.regularAmount} SEK / night
{price?.regularAmount} SEK / {intl.formatMessage({ id: "night" })}
</Caption>
<Footnote color="textMediumContrast">approx 280 eur</Footnote>
</div>
@@ -100,7 +98,7 @@ export default async function HotelCard({
{intl.formatMessage({ id: "Member price from" })}
</Chip>
<Caption color="textMediumContrast">
{price?.memberAmount} SEK / night
{price?.memberAmount} SEK / {intl.formatMessage({ id: "night" })}
</Caption>
<Footnote color="textMediumContrast">approx 280 eur</Footnote>
</div>