This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,3 +12,9 @@ export const ButtonLikeLink = styled(Link)<ButtonStyleProps>`
1212 ${ fontMedium }
1313 gap: var(--spacing-s);
1414` ;
15+
16+ export const ButtonLikeExternalLink = styled . a < ButtonStyleProps > `
17+ ${ ButtonCss }
18+ ${ fontMedium }
19+ gap: var(--spacing-s);
20+ ` ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { getReservationUnitInstructionsKey } from "@/modules/reservationUnit";
2222import { getTranslation } from "@/modules/util" ;
2323import { BlackButton } from "@/styles/util" ;
2424import { Paragraph } from "./styles" ;
25- import { ButtonLikeLink } from "../common/ButtonLikeLink" ;
25+ import { ButtonLikeExternalLink } from "../common/ButtonLikeLink" ;
2626import { getReservationUnitPath , reservationsPath } from "@/modules/urls" ;
2727
2828type Node = NonNullable < ReservationQuery [ "reservation" ] > ;
@@ -140,16 +140,15 @@ function ReservationConfirmation({
140140 </ Paragraph >
141141 { reservation . state === ReservationStateChoice . Confirmed && (
142142 < ActionContainer1 style = { { marginBottom : "var(--spacing-2-xl)" } } >
143- < ButtonLikeLink
143+ < ButtonLikeExternalLink
144144 size = "large"
145145 disabled = { ! reservation . calendarUrl }
146146 data-testid = "reservation__confirmation--button__calendar-url"
147147 href = { reservation . calendarUrl ?? "" }
148- locale = { false }
149148 >
150149 { t ( "reservations:saveToCalendar" ) }
151150 < IconCalendar aria-hidden />
152- </ ButtonLikeLink >
151+ </ ButtonLikeExternalLink >
153152 { order ?. receiptUrl && (
154153 < BlackButton
155154 data-testid = "reservation__confirmation--button__receipt-link"
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ import {
5757import { base64encode , filterNonNullable } from "common/src/helpers" ;
5858import { containsField , containsNameField } from "common/src/metaFieldsHelpers" ;
5959import { NotModifiableReason } from "@/components/reservation/NotModifiableReason" ;
60- import { ButtonLikeLink } from "@/components/common/ButtonLikeLink" ;
60+ import {
61+ ButtonLikeLink ,
62+ ButtonLikeExternalLink ,
63+ } from "@/components/common/ButtonLikeLink" ;
6164import { useRouter } from "next/router" ;
6265import { successToast } from "common/src/common/toast" ;
6366import { ReservationPageWrapper } from "@/components/reservations/styles" ;
@@ -476,16 +479,15 @@ function Reservation({
476479 < ReservationInfoCard reservation = { reservation } type = "complete" />
477480 < SecondaryActions >
478481 { reservation . state === ReservationStateChoice . Confirmed && (
479- < ButtonLikeLink
482+ < ButtonLikeExternalLink
480483 size = "large"
481484 disabled = { ! reservation . calendarUrl }
482485 data-testid = "reservation__button--calendar-link"
483486 href = { reservation . calendarUrl ?? "" }
484- locale = { false }
485487 >
486488 { t ( "reservations:saveToCalendar" ) }
487489 < IconCalendar aria-hidden />
488- </ ButtonLikeLink >
490+ </ ButtonLikeExternalLink >
489491 ) }
490492 { hasReceipt && (
491493 < ButtonLikeLink
You can’t perform that action at this time.
0 commit comments