Merged in feat/SW-1600-finnish-hotel-phone (pull request #1456)
feat(SW-1600): Showing caption with phone costs on Finnish hotels * feat(SW-1600): Showing caption with phone costs on Finnish hotels Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -11,6 +11,7 @@ import { getLang } from "@/i18n/serverContext"
|
||||
import styles from "./contactInformation.module.css"
|
||||
|
||||
import type { ContactInformationProps } from "@/types/components/hotelPage/sidepeek/aboutTheHotel"
|
||||
import { Country } from "@/types/enums/country"
|
||||
|
||||
export default async function ContactInformation({
|
||||
hotelAddress,
|
||||
@@ -65,6 +66,13 @@ export default async function ContactInformation({
|
||||
{contact.phoneNumber}
|
||||
</Link>
|
||||
</Body>
|
||||
{hotelAddress.country === Country.Finland ? (
|
||||
<Caption>
|
||||
{intl.formatMessage({
|
||||
id: "Price 0,16 €/min + local call charges",
|
||||
})}
|
||||
</Caption>
|
||||
) : null}
|
||||
</div>
|
||||
<div className={styles.socials}>
|
||||
<Body textTransform="bold">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
@@ -29,11 +29,11 @@ export default async function MeetingsSidebar({
|
||||
<div className={styles.contactDetails}>
|
||||
<Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>
|
||||
{country === Country.Finland ? (
|
||||
<Body>
|
||||
<Caption>
|
||||
{intl.formatMessage({
|
||||
id: "Price 0,16 €/min + local call charges",
|
||||
})}
|
||||
</Body>
|
||||
</Caption>
|
||||
) : null}
|
||||
{email && (
|
||||
<Link textDecoration="underline" href={`mailto:${email}`}>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
import styles from "./sidebar.module.css"
|
||||
|
||||
import { Country } from "@/types/enums/country"
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
|
||||
interface HotelSidebarProps {
|
||||
@@ -36,6 +38,13 @@ export default async function ParkingSidebar({ hotel }: HotelSidebarProps) {
|
||||
<Link href={`tel:${hotel.contactInformation.phoneNumber}`}>
|
||||
{hotel.contactInformation.phoneNumber}
|
||||
</Link>
|
||||
{hotel.address.country === Country.Finland ? (
|
||||
<Caption>
|
||||
{intl.formatMessage({
|
||||
id: "Price 0,16 €/min + local call charges",
|
||||
})}
|
||||
</Caption>
|
||||
) : null}
|
||||
</div>
|
||||
</aside>
|
||||
)
|
||||
|
||||
@@ -3,11 +3,13 @@ import OpeningHours from "@/components/OpeningHours"
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
import styles from "./sidebar.module.css"
|
||||
|
||||
import { Country } from "@/types/enums/country"
|
||||
import type { Hotel, Restaurant } from "@/types/hotel"
|
||||
|
||||
interface RestaurantSidebarProps {
|
||||
@@ -88,7 +90,16 @@ export default async function RestaurantSidebar({
|
||||
</Title>
|
||||
<div className={styles.contactDetails}>
|
||||
{phoneNumber && (
|
||||
<Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>
|
||||
<>
|
||||
<Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>
|
||||
{address.country === Country.Finland ? (
|
||||
<Caption>
|
||||
{intl.formatMessage({
|
||||
id: "Price 0,16 €/min + local call charges",
|
||||
})}
|
||||
</Caption>
|
||||
) : null}
|
||||
</>
|
||||
)}
|
||||
{email && (
|
||||
<Link textDecoration="underline" href={`mailto:${email}`}>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { getIntl } from "@/i18n"
|
||||
@@ -8,6 +9,7 @@ import { translateWellnessType } from "../../HotelPage/utils"
|
||||
|
||||
import styles from "./sidebar.module.css"
|
||||
|
||||
import { Country } from "@/types/enums/country"
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
|
||||
interface WellnessSidebarProps {
|
||||
@@ -81,6 +83,13 @@ export default async function WellnessSidebar({ hotel }: WellnessSidebarProps) {
|
||||
<Link href={`tel:${hotel.contactInformation.phoneNumber}`}>
|
||||
{hotel.contactInformation.phoneNumber}
|
||||
</Link>
|
||||
{hotel.address.country === Country.Finland ? (
|
||||
<Caption>
|
||||
{intl.formatMessage({
|
||||
id: "Price 0,16 €/min + local call charges",
|
||||
})}
|
||||
</Caption>
|
||||
) : null}
|
||||
</div>
|
||||
</aside>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user