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 styles from "./contactInformation.module.css"
|
||||||
|
|
||||||
import type { ContactInformationProps } from "@/types/components/hotelPage/sidepeek/aboutTheHotel"
|
import type { ContactInformationProps } from "@/types/components/hotelPage/sidepeek/aboutTheHotel"
|
||||||
|
import { Country } from "@/types/enums/country"
|
||||||
|
|
||||||
export default async function ContactInformation({
|
export default async function ContactInformation({
|
||||||
hotelAddress,
|
hotelAddress,
|
||||||
@@ -65,6 +66,13 @@ export default async function ContactInformation({
|
|||||||
{contact.phoneNumber}
|
{contact.phoneNumber}
|
||||||
</Link>
|
</Link>
|
||||||
</Body>
|
</Body>
|
||||||
|
{hotelAddress.country === Country.Finland ? (
|
||||||
|
<Caption>
|
||||||
|
{intl.formatMessage({
|
||||||
|
id: "Price 0,16 €/min + local call charges",
|
||||||
|
})}
|
||||||
|
</Caption>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.socials}>
|
<div className={styles.socials}>
|
||||||
<Body textTransform="bold">
|
<Body textTransform="bold">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Link from "@/components/TempDesignSystem/Link"
|
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 Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
@@ -29,11 +29,11 @@ export default async function MeetingsSidebar({
|
|||||||
<div className={styles.contactDetails}>
|
<div className={styles.contactDetails}>
|
||||||
<Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>
|
<Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>
|
||||||
{country === Country.Finland ? (
|
{country === Country.Finland ? (
|
||||||
<Body>
|
<Caption>
|
||||||
{intl.formatMessage({
|
{intl.formatMessage({
|
||||||
id: "Price 0,16 €/min + local call charges",
|
id: "Price 0,16 €/min + local call charges",
|
||||||
})}
|
})}
|
||||||
</Body>
|
</Caption>
|
||||||
) : null}
|
) : null}
|
||||||
{email && (
|
{email && (
|
||||||
<Link textDecoration="underline" href={`mailto:${email}`}>
|
<Link textDecoration="underline" href={`mailto:${email}`}>
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import styles from "./sidebar.module.css"
|
import styles from "./sidebar.module.css"
|
||||||
|
|
||||||
|
import { Country } from "@/types/enums/country"
|
||||||
import type { Hotel } from "@/types/hotel"
|
import type { Hotel } from "@/types/hotel"
|
||||||
|
|
||||||
interface HotelSidebarProps {
|
interface HotelSidebarProps {
|
||||||
@@ -36,6 +38,13 @@ export default async function ParkingSidebar({ hotel }: HotelSidebarProps) {
|
|||||||
<Link href={`tel:${hotel.contactInformation.phoneNumber}`}>
|
<Link href={`tel:${hotel.contactInformation.phoneNumber}`}>
|
||||||
{hotel.contactInformation.phoneNumber}
|
{hotel.contactInformation.phoneNumber}
|
||||||
</Link>
|
</Link>
|
||||||
|
{hotel.address.country === Country.Finland ? (
|
||||||
|
<Caption>
|
||||||
|
{intl.formatMessage({
|
||||||
|
id: "Price 0,16 €/min + local call charges",
|
||||||
|
})}
|
||||||
|
</Caption>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,11 +3,13 @@ import OpeningHours from "@/components/OpeningHours"
|
|||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import styles from "./sidebar.module.css"
|
import styles from "./sidebar.module.css"
|
||||||
|
|
||||||
|
import { Country } from "@/types/enums/country"
|
||||||
import type { Hotel, Restaurant } from "@/types/hotel"
|
import type { Hotel, Restaurant } from "@/types/hotel"
|
||||||
|
|
||||||
interface RestaurantSidebarProps {
|
interface RestaurantSidebarProps {
|
||||||
@@ -88,7 +90,16 @@ export default async function RestaurantSidebar({
|
|||||||
</Title>
|
</Title>
|
||||||
<div className={styles.contactDetails}>
|
<div className={styles.contactDetails}>
|
||||||
{phoneNumber && (
|
{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 && (
|
{email && (
|
||||||
<Link textDecoration="underline" href={`mailto:${email}`}>
|
<Link textDecoration="underline" href={`mailto:${email}`}>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
@@ -8,6 +9,7 @@ import { translateWellnessType } from "../../HotelPage/utils"
|
|||||||
|
|
||||||
import styles from "./sidebar.module.css"
|
import styles from "./sidebar.module.css"
|
||||||
|
|
||||||
|
import { Country } from "@/types/enums/country"
|
||||||
import type { Hotel } from "@/types/hotel"
|
import type { Hotel } from "@/types/hotel"
|
||||||
|
|
||||||
interface WellnessSidebarProps {
|
interface WellnessSidebarProps {
|
||||||
@@ -81,6 +83,13 @@ export default async function WellnessSidebar({ hotel }: WellnessSidebarProps) {
|
|||||||
<Link href={`tel:${hotel.contactInformation.phoneNumber}`}>
|
<Link href={`tel:${hotel.contactInformation.phoneNumber}`}>
|
||||||
{hotel.contactInformation.phoneNumber}
|
{hotel.contactInformation.phoneNumber}
|
||||||
</Link>
|
</Link>
|
||||||
|
{hotel.address.country === Country.Finland ? (
|
||||||
|
<Caption>
|
||||||
|
{intl.formatMessage({
|
||||||
|
id: "Price 0,16 €/min + local call charges",
|
||||||
|
})}
|
||||||
|
</Caption>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user