diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx index e25dd0727..779103ef6 100644 --- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx +++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx @@ -1,10 +1,9 @@ "use client" -import { Link } from "react-aria-components" import { useIntl } from "react-intl" import { profile } from "@scandic-hotels/common/constants/routes/myPages" +import ButtonLink from "@scandic-hotels/design-system/ButtonLink" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" -import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" import { Typography } from "@scandic-hotels/design-system/Typography" import useLang from "@/hooks/useLang" @@ -40,14 +39,12 @@ export function DateOfBirthError() { })}

- + + {intl.formatMessage({ + id: "linkEuroBonusAccount.viewYourDetailsButton", + defaultMessage: "View your details", + })} + diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx index f7f589f38..6eb45d2e2 100644 --- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx +++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx @@ -2,7 +2,7 @@ import { useIntl } from "react-intl" -import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" +import { Button } from "@scandic-hotels/design-system/Button" import { Typography } from "@scandic-hotels/design-system/Typography" import { GenericError } from "./GenericError" @@ -26,7 +26,7 @@ export function TooManyCodesError() { })}

- + {intl.formatMessage({ + id: "transferEuroBonusPoints.backToMyPagesButton", + defaultMessage: "Go back to My Pages", + })} + ) @@ -146,31 +143,21 @@ async function TransactionCard({

- + {intl.formatMessage({ + id: "transferEuroBonusPoints.bookNowButton", + defaultMessage: "Book now", + })} + )} diff --git a/apps/scandic-web/components/Blocks/CardsGrid.tsx b/apps/scandic-web/components/Blocks/CardsGrid.tsx index 675a7fd3b..c73a9fcc9 100644 --- a/apps/scandic-web/components/Blocks/CardsGrid.tsx +++ b/apps/scandic-web/components/Blocks/CardsGrid.tsx @@ -1,13 +1,13 @@ +import { InfoCard } from "@scandic-hotels/design-system/InfoCard" import { TeaserCard } from "@scandic-hotels/design-system/TeaserCard" import { CardsGridEnum, CardsGridLayoutEnum, } from "@scandic-hotels/trpc/types/cardsGridEnum" -import InfoCard from "@/components/ContentType/StartPage/InfoCard" +import InfoCardWithImage from "@/components/ContentType/StartPage/InfoCardWithImage" import { Section } from "@/components/Section" import { SectionHeader } from "@/components/Section/Header" -import Card from "@/components/TempDesignSystem/Card" import Grids from "@/components/TempDesignSystem/Grids" import LoyaltyCard from "@/components/TempDesignSystem/LoyaltyCard" @@ -55,33 +55,21 @@ export default function CardsGrid({ {cards_grid.cards.map((card, index) => { switch (card.__typename) { - case CardsGridEnum.cards.Card: - return ( - - ) case CardsGridEnum.cards.InfoCard: return ( + ) + case CardsGridEnum.cards.InfoCardWithImage: + return ( + ) diff --git a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx index ce816befe..aef98a2ce 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx @@ -3,8 +3,7 @@ import { useIntl } from "react-intl" import { dt } from "@scandic-hotels/common/dt" -import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" -import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" +import ButtonLink from "@scandic-hotels/design-system/ButtonLink" import { Typography } from "@scandic-hotels/design-system/Typography" import useLang from "@/hooks/useLang" @@ -52,21 +51,19 @@ export default function JobylonCard({ job }: JobylonCardProps) { - + {intl.formatMessage({ + id: "jobylonFeed.card.viewAndApplyButton", + defaultMessage: "View & apply", + })} + ) diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Overview/MembershipOverviewCard/UsePoints/UsePointsModal.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Overview/MembershipOverviewCard/UsePoints/UsePointsModal.tsx index 6eb3328b5..1802a7001 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Overview/MembershipOverviewCard/UsePoints/UsePointsModal.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Overview/MembershipOverviewCard/UsePoints/UsePointsModal.tsx @@ -5,7 +5,6 @@ import { useIntl } from "react-intl" import { serializeBookingSearchParams } from "@scandic-hotels/booking-flow/utils/url" import { BOOK_NOW_SESSION_KEY } from "@scandic-hotels/common/constants/sessionKeys" -import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { LinkList } from "@scandic-hotels/design-system/LinkList" import { MessageBanner } from "@scandic-hotels/design-system/MessageBanner" import Modal from "@scandic-hotels/design-system/Modal" @@ -15,7 +14,7 @@ import { SEARCH_TYPE_REDEMPTION } from "@scandic-hotels/trpc/constants/booking" import { rewardNightsURL } from "@/constants/rewards" -import InfoCard from "@/components/ContentType/StartPage/InfoCard" +import InfoCardWithImage from "@/components/ContentType/StartPage/InfoCardWithImage" import { UsePointsButton } from "./UsePointsButton" @@ -120,7 +119,7 @@ export function UsePointsModal({
{points >= 10000 ? ( - trackButtonClick("book now"), }} secondaryButton={{ href: rewardNightsURL, - title: intl.formatMessage({ + text: intl.formatMessage({ id: "myPages.membershipPointsModal.priceList", defaultMessage: "Price list", }), openInNewTab: true, - materialIcon: ( - - ), + trailingIconName: "open_in_new", + onClick: () => trackButtonClick("price list"), }} - onPrimaryButtonClick={() => trackButtonClick("book now")} - onSecondaryButtonClick={() => trackButtonClick("price list")} - theme="primaryDark" + theme="Primary 3" imagePosition="top" height="dynamic" - > + /> ) : ( - - ), + trailingIconName: "open_in_new", + onClick: () => trackButtonClick("price list"), }} - onSecondaryButtonClick={() => trackButtonClick("price list")} - theme="primaryDark" + theme="Primary 3" imagePosition="top" height="dynamic" - > + /> )}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx index 56fbd12b8..ac1627eff 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx @@ -1,6 +1,6 @@ import { useIntl } from "react-intl" -import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" +import { Button } from "@scandic-hotels/design-system/Button" import { Typography } from "@scandic-hotels/design-system/Typography" import useRedeemFlow from "./useRedeemFlow" @@ -42,17 +42,13 @@ export function ConfirmClose({ close }: { close: () => void }) {