From d5cdbf7e82a94477d6292f4695ad9f26b4d98248 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Mon, 18 Nov 2024 14:23:37 +0100 Subject: [PATCH] feat(SW-750): update icon import --- .../HotelPage/IntroSection/index.tsx | 3 +-- .../contactInformation.module.css | 2 +- .../ContactInformation/index.tsx | 27 +++++++++---------- .../SidePeeks/AboutTheHotel/index.tsx | 13 +++++---- components/ContentType/HotelPage/index.tsx | 1 + components/HotelReservation/Contact/index.tsx | 3 +-- .../HotelCardDialog/index.tsx | 3 +-- .../TripAdvisorChip/index.tsx | 2 +- components/Icons/get-icon-by-icon-name.ts | 6 ++--- components/Icons/index.tsx | 2 ++ .../hotelPage/sidepeek/aboutTheHotel.ts | 1 + .../hotelPage/sidepeek/contactInformation.ts | 2 +- 12 files changed, 33 insertions(+), 32 deletions(-) diff --git a/components/ContentType/HotelPage/IntroSection/index.tsx b/components/ContentType/HotelPage/IntroSection/index.tsx index fe2db96c0..453f1e192 100644 --- a/components/ContentType/HotelPage/IntroSection/index.tsx +++ b/components/ContentType/HotelPage/IntroSection/index.tsx @@ -1,7 +1,6 @@ import { about } from "@/constants/routes/hotelPageParams" -import { ChevronRightSmallIcon } from "@/components/Icons" -import TripAdvisorIcon from "@/components/Icons/TripAdvisor" +import { ChevronRightSmallIcon, TripAdvisorIcon } from "@/components/Icons" import Link from "@/components/TempDesignSystem/Link" import BiroScript from "@/components/TempDesignSystem/Text/BiroScript" import Body from "@/components/TempDesignSystem/Text/Body" diff --git a/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/contactInformation.module.css b/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/contactInformation.module.css index ac5ce5db3..56e92dba3 100644 --- a/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/contactInformation.module.css +++ b/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/contactInformation.module.css @@ -4,7 +4,7 @@ gap: var(--Spacing-x-one-and-half); } -.placeholder { +.information { display: grid; grid-template-columns: 1fr 1fr; gap: var(--Spacing-x2); diff --git a/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx b/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx index a906bc95f..2caf0f3ad 100644 --- a/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx +++ b/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx @@ -1,5 +1,4 @@ -import { InstagramIcon } from "@/components/Icons" -import FacebookIcon from "@/components/Icons/Facebook" +import { FacebookIcon, InstagramIcon } from "@/components/Icons" import Image from "@/components/Image" import Link from "@/components/TempDesignSystem/Link" import Body from "@/components/TempDesignSystem/Text/Body" @@ -26,7 +25,7 @@ export default async function ContactInformation({ {intl.formatMessage({ id: "Practical information" })} -
+
{intl.formatMessage({ id: "Address" })} @@ -66,18 +65,16 @@ export default async function ContactInformation({ {intl.formatMessage({ id: "Follow us" })}
- - - - - - + {socials.instagram && ( + + + + )} + {socials.facebook && ( + + + + )}
diff --git a/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx b/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx index d709c4a7c..f0737a09a 100644 --- a/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx +++ b/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx @@ -22,6 +22,7 @@ export default async function AboutTheHotelSidePeek({ socials, ecoLabels, descriptions, + buttonUrl, }: AboutTheHotelSidePeekProps) { const lang = getLang() const intl = await getIntl() @@ -42,11 +43,13 @@ export default async function AboutTheHotelSidePeek({ {descriptions.short} {descriptions.medium} - + {buttonUrl && ( + + )} ) diff --git a/components/ContentType/HotelPage/index.tsx b/components/ContentType/HotelPage/index.tsx index 5f6c6a0e7..40264d7d8 100644 --- a/components/ContentType/HotelPage/index.tsx +++ b/components/ContentType/HotelPage/index.tsx @@ -145,6 +145,7 @@ export default async function HotelPage() { socials={socials} ecoLabels={ecoLabels} descriptions={hotelDescription} + buttonUrl="#" />