Merged in feat/SW-1490-add-short-description-to-restaurant-sidepeek (pull request #1228)

feat/SW-1490-add-short-description-to-restaurant-sidepeek

* feat(SW-1490): add short description


Approved-by: Erik Tiekstra
This commit is contained in:
Fredrik Thorsson
2025-01-30 12:16:41 +00:00
parent 4da3934768
commit ec74af8814

View File

@@ -2,6 +2,7 @@ import ButtonLink from "@/components/ButtonLink"
import { OpenInNewSmallIcon } from "@/components/Icons"
import Image from "@/components/Image"
import Link from "@/components/TempDesignSystem/Link"
import Body from "@/components/TempDesignSystem/Text/Body"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import { getIntl } from "@/i18n"
@@ -15,7 +16,7 @@ export default async function RestaurantBarItem({
restaurant,
}: RestaurantBarItemProps) {
const intl = await getIntl()
const { name, openingDetails, menus } = restaurant
const { name, openingDetails, menus, content } = restaurant
const { bookTableUrl, images } = restaurant.content
const visibleImages = restaurant.content.images.slice(0, 2)
const imageWidth = images.length === 2 ? 240 : 496
@@ -44,6 +45,7 @@ export default async function RestaurantBarItem({
))}
</div>
) : null}
<Body>{content.texts.descriptions.short}</Body>
{openingDetails.length ? (
<div className={styles.content}>
<Subtitle type="two" asChild>