feat(SW-375): consume new tokens in scandic-web

This commit is contained in:
Michael Zetterberg
2025-03-02 08:12:27 +01:00
parent 56973888c9
commit 6232ded991
27 changed files with 68 additions and 147 deletions
@@ -1,9 +1,10 @@
import { Typography } from "@scandic-hotels/design-system/Typography"
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"
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
import { getSingleDecimal } from "@/utils/numberFormatting"
@@ -47,7 +48,9 @@ export default async function IntroSection({
<BiroScript tilted="medium" color="red">
{intl.formatMessage({ id: "Welcome to" })}
</BiroScript>
<Title level="h2">{hotelName}</Title>
<Typography variant="Title/lg">
<h1>{hotelName}</h1>
</Typography>
</div>
<Body color="uiTextMediumContrast">{formattedLocationText}</Body>
{hasTripAdvisorData && (
@@ -1,11 +1,10 @@
"use client"
import { useRouter } from "next/navigation"
import { Button } from "@scandic-hotels/design-system/current"
import { renderOptions as currentRenderOptions } from "@/components/Current/currentRenderOptions"
import DeprecatedJsonToHtml from "@/components/DeprecatedJsonToHtml"
import Image from "@/components/Image"
import Button from "@/components/TempDesignSystem/Button"
import { renderOptions } from "./renderOptions"
@@ -1,6 +1,6 @@
"use client"
import "@scandic-hotels/design-system/current/style.css"
import "@/public/_static/css/design-system-current-deprecated.css"
import { useIntl } from "react-intl"
@@ -1,6 +1,3 @@
import "@/app/globals.css"
import "@scandic-hotels/design-system/style.css"
import { overview } from "@/constants/routes/webviews"
import { serverClient } from "@/lib/trpc/server"