fix(SW-435): Now using our Image component instead of NextImage
Approved-by: Linus Flood
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import NextImage from "next/image"
|
|
||||||
import { notFound } from "next/navigation"
|
import { notFound } from "next/navigation"
|
||||||
import { Suspense } from "react"
|
import { Suspense } from "react"
|
||||||
|
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Breadcrumbs from "@/components/Breadcrumbs"
|
import Breadcrumbs from "@/components/Breadcrumbs"
|
||||||
|
import Image from "@/components/Image"
|
||||||
import BreadcrumbsSkeleton from "@/components/TempDesignSystem/Breadcrumbs/BreadcrumbsSkeleton"
|
import BreadcrumbsSkeleton from "@/components/TempDesignSystem/Breadcrumbs/BreadcrumbsSkeleton"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getLang } from "@/i18n/serverContext"
|
import { getLang } from "@/i18n/serverContext"
|
||||||
@@ -77,7 +77,7 @@ export default async function ReviewsSubpage({ hotel }: ReviewsSubpageProps) {
|
|||||||
</Typography>
|
</Typography>
|
||||||
<div className={styles.sidebarContent}>
|
<div className={styles.sidebarContent}>
|
||||||
{showNordicEcoLabel ? (
|
{showNordicEcoLabel ? (
|
||||||
<NextImage
|
<Image
|
||||||
src={`/_static/img/icons/swan-eco/swan_eco_dark_${lang}.png`}
|
src={`/_static/img/icons/swan-eco/swan_eco_dark_${lang}.png`}
|
||||||
alt={intl.formatMessage({
|
alt={intl.formatMessage({
|
||||||
defaultMessage: "Nordic Swan Ecolabel",
|
defaultMessage: "Nordic Swan Ecolabel",
|
||||||
@@ -88,7 +88,7 @@ export default async function ReviewsSubpage({ hotel }: ReviewsSubpageProps) {
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
{awardsLogos?.map((award) => (
|
{awardsLogos?.map((award) => (
|
||||||
<NextImage
|
<Image
|
||||||
src={award.imageUrl}
|
src={award.imageUrl}
|
||||||
alt={award.altText}
|
alt={award.altText}
|
||||||
className={styles.logo}
|
className={styles.logo}
|
||||||
|
|||||||
Reference in New Issue
Block a user