- {/*
+ {/*
TODO: Hiding because API is not ready for this yet (https://scandichotels.atlassian.net/browse/SW-1497). Add back in when API is ready.
diff --git a/components/HotelReservation/EnterDetails/SectionAccordion/index.tsx b/components/HotelReservation/EnterDetails/SectionAccordion/index.tsx
index f37e64143..d0800ba65 100644
--- a/components/HotelReservation/EnterDetails/SectionAccordion/index.tsx
+++ b/components/HotelReservation/EnterDetails/SectionAccordion/index.tsx
@@ -10,10 +10,9 @@ import {
selectRoomStatus,
} from "@/stores/enter-details/helpers"
-import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "@/components/Icons"
+import { CheckIcon, ChevronDownIcon } from "@/components/Icons"
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
-import useScrollToActiveSection from "@/hooks/booking/useScrollToActiveSection"
import styles from "./sectionAccordion.module.css"
diff --git a/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/SelectedRoomPanel/index.tsx b/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/SelectedRoomPanel/index.tsx
index 49e819c70..37debea76 100644
--- a/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/SelectedRoomPanel/index.tsx
+++ b/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/SelectedRoomPanel/index.tsx
@@ -16,13 +16,7 @@ import { isValidClientSession } from "@/utils/clientSession"
import styles from "./selectedRoomPanel.module.css"
-import type { Room as SelectedRateRoom } from "@/types/components/hotelReservation/selectRate/selectRate"
-
-interface SelectedRoomPanelProps {
- room: SelectedRateRoom
-}
-
-export default function SelectedRoomPanel({ room }: SelectedRoomPanelProps) {
+export default function SelectedRoomPanel() {
const intl = useIntl()
const { data: session } = useSession()
const isUserLoggedIn = isValidClientSession(session)
diff --git a/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/index.tsx b/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/index.tsx
index 9e62d9b9a..45a894e57 100644
--- a/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/index.tsx
+++ b/components/HotelReservation/SelectRate/RoomsContainer/Rooms/MultiRoomWrapper/index.tsx
@@ -71,7 +71,7 @@ export default function MultiRoomWrapper({
)}
diff --git a/components/Lightbox/FullView.tsx b/components/Lightbox/FullView.tsx
index 714a96f86..c6a316f08 100644
--- a/components/Lightbox/FullView.tsx
+++ b/components/Lightbox/FullView.tsx
@@ -86,7 +86,7 @@ export default function FullView({
transition={{ duration: 0.3 }}
className={styles.fullViewImage}
drag="x"
- onDragEnd={(e, info) => handleSwipe(info.offset.x)}
+ onDragEnd={(_e, info) => handleSwipe(info.offset.x)}
>
{
+ onError: () => {
toast.error(
intl.formatMessage({
id: "An error occurred trying to manage your preferences, please try again later.",
diff --git a/components/SidePeeks/HotelSidePeek/index.tsx b/components/SidePeeks/HotelSidePeek/index.tsx
index c34d6f3f6..97dbc1579 100644
--- a/components/SidePeeks/HotelSidePeek/index.tsx
+++ b/components/SidePeeks/HotelSidePeek/index.tsx
@@ -22,7 +22,6 @@ export default function HotelSidePeek({
additionalHotelData,
activeSidePeek,
close,
- showCTA,
}: HotelSidePeekProps) {
const intl = useIntl()
const amenitiesList = hotel.detailedFacilities.filter(
@@ -87,7 +86,7 @@ export default function HotelSidePeek({
{/* TODO: handle linking to Hotel Page */}
- {/* {showCTA && (
+ {/* {showCTA && (
diff --git a/components/Sidebar/JoinLoyalty/index.tsx b/components/Sidebar/JoinLoyalty/index.tsx
index d71c70c49..9c891d4af 100644
--- a/components/Sidebar/JoinLoyalty/index.tsx
+++ b/components/Sidebar/JoinLoyalty/index.tsx
@@ -1,5 +1,3 @@
-import { getName } from "@/lib/trpc/memoizedRequests"
-
import { auth } from "@/auth"
import ArrowRight from "@/components/Icons/ArrowRight"
import { ScandicFriends } from "@/components/Levels"
diff --git a/components/TempDesignSystem/Form/NewPassword/index.tsx b/components/TempDesignSystem/Form/NewPassword/index.tsx
index 69cfaecc2..95708cdef 100644
--- a/components/TempDesignSystem/Form/NewPassword/index.tsx
+++ b/components/TempDesignSystem/Form/NewPassword/index.tsx
@@ -29,7 +29,6 @@ export default function NewPassword({
disabled = false,
placeholder = "",
registerOptions = {},
- label,
visibilityToggleable = true,
}: NewPasswordProps) {
const { control } = useFormContext()
diff --git a/i18n/dictionaries/da.json b/i18n/dictionaries/da.json
index cb27ed21f..16cd7a3d9 100644
--- a/i18n/dictionaries/da.json
+++ b/i18n/dictionaries/da.json
@@ -379,7 +379,6 @@
"No hotels match your filters": "Ingen rum matchede dine filtre.",
"No matching location found": "Der blev ikke fundet nogen matchende placering",
"No membership benefits applied": "No membership benefits applied",
- "No preference": "Ingen præference",
"No prices available": "Ingen tilgængelige priser",
"No results": "Ingen resultater",
"No transactions available": "Ingen tilgængelige transaktioner",
@@ -592,7 +591,6 @@
"Upgrade your stay": "Opgrader dit ophold",
"Use Bonus Cheque": "Brug Bonus Cheque",
"Use bonus cheque": "Brug Bonus Cheque",
- "Use code/voucher": "Brug kode/voucher",
"User information": "Brugeroplysninger",
"VAT": "VAT",
"VAT amount": "VAT amount",
diff --git a/i18n/dictionaries/de.json b/i18n/dictionaries/de.json
index 86ab4198a..c7865dc8d 100644
--- a/i18n/dictionaries/de.json
+++ b/i18n/dictionaries/de.json
@@ -380,7 +380,6 @@
"No hotels match your filters": "Kein Zimmer entspricht Ihren Filtern.",
"No matching location found": "Kein passender Standort gefunden",
"No membership benefits applied": "No membership benefits applied",
- "No preference": "Keine Präferenz",
"No prices available": "Keine Preise verfügbar",
"No results": "Keine Ergebnisse",
"No transactions available": "Keine Transaktionen verfügbar",
@@ -592,7 +591,6 @@
"Upgrade your stay": "Werten Sie Ihren Aufenthalt auf",
"Use Bonus Cheque": "Bonusscheck nutzen",
"Use bonus cheque": "Bonusscheck nutzen",
- "Use code/voucher": "Code/Gutschein nutzen",
"User information": "Nutzerinformation",
"VAT": "VAT",
"VAT amount": "VAT amount",
diff --git a/i18n/dictionaries/en.json b/i18n/dictionaries/en.json
index d744cec6b..5293a4bd2 100644
--- a/i18n/dictionaries/en.json
+++ b/i18n/dictionaries/en.json
@@ -385,7 +385,6 @@
"No hotels match your filters": "No hotels match your filters",
"No matching location found": "No matching location found",
"No membership benefits applied": "No membership benefits applied",
- "No preference": "No preference",
"No prices available": "No prices available",
"No results": "No results",
"No transactions available": "No transactions available",
@@ -598,7 +597,6 @@
"Upgrade your stay": "Upgrade your stay",
"Use Bonus Cheque": "Use Bonus Cheque",
"Use bonus cheque": "Use bonus cheque",
- "Use code/voucher": "Use code/voucher",
"User information": "User information",
"VAT": "VAT",
"VAT amount": "VAT amount",
diff --git a/i18n/dictionaries/fi.json b/i18n/dictionaries/fi.json
index 8316b8a6e..d6eafdb04 100644
--- a/i18n/dictionaries/fi.json
+++ b/i18n/dictionaries/fi.json
@@ -379,7 +379,6 @@
"No hotels match your filters": "Yksikään huone ei vastannut suodattimiasi",
"No matching location found": "Vastaavaa sijaintia ei löytynyt",
"No membership benefits applied": "No membership benefits applied",
- "No preference": "Ei toivetta",
"No prices available": "Hintoja ei ole saatavilla",
"No results": "Ei tuloksia",
"No transactions available": "Ei tapahtumia saatavilla",
@@ -592,7 +591,6 @@
"Upgrade your stay": "Päivitä oleskelusi",
"Use Bonus Cheque": "Käytä bonussekkiä",
"Use bonus cheque": "Käytä bonussekkiä",
- "Use code/voucher": "Käytä koodia/voucheria",
"User information": "Käyttäjän tiedot",
"VAT": "VAT",
"VAT amount": "VAT amount",
diff --git a/i18n/dictionaries/no.json b/i18n/dictionaries/no.json
index ed86b4b6a..e48e5ab44 100644
--- a/i18n/dictionaries/no.json
+++ b/i18n/dictionaries/no.json
@@ -378,7 +378,6 @@
"No hotels match your filters": "Ingen rom samsvarte med filtrene dine",
"No matching location found": "Fant ingen samsvarende plassering",
"No membership benefits applied": "No membership benefits applied",
- "No preference": "Ingen preferanse",
"No prices available": "Ingen priser tilgjengelig",
"No results": "Ingen resultater",
"No transactions available": "Ingen transaksjoner tilgjengelig",
@@ -590,7 +589,6 @@
"Upgrade your stay": "Oppgrader oppholdet ditt",
"Use Bonus Cheque": "Bruk bonussjekk",
"Use bonus cheque": "Bruk bonussjekk",
- "Use code/voucher": "Bruk kode/voucher",
"User information": "Brukerinformasjon",
"VAT": "VAT",
"VAT amount": "VAT amount",
diff --git a/i18n/dictionaries/sv.json b/i18n/dictionaries/sv.json
index 37fcaeae0..4e9388f59 100644
--- a/i18n/dictionaries/sv.json
+++ b/i18n/dictionaries/sv.json
@@ -378,7 +378,6 @@
"No hotels match your filters": "Inga rum matchade dina filter",
"No matching location found": "Ingen matchande plats hittades",
"No membership benefits applied": "No membership benefits applied",
- "No preference": "Ingen preferens",
"No prices available": "Inga priser tillgängliga",
"No results": "Inga resultat",
"No transactions available": "Inga transaktioner tillgängliga",
@@ -590,7 +589,6 @@
"Upgrade your stay": "Uppgradera din vistelse",
"Use Bonus Cheque": "Använd bonuscheck",
"Use bonus cheque": "Använd bonuscheck",
- "Use code/voucher": "Använd kod/voucher",
"User information": "Användarinformation",
"VAT": "VAT",
"VAT amount": "VAT amount",
diff --git a/lib/api/index.ts b/lib/api/index.ts
index 5842b5597..5fc1173c1 100644
--- a/lib/api/index.ts
+++ b/lib/api/index.ts
@@ -22,7 +22,7 @@ const defaultOptions: RequestInit = {
const wrappedFetch = fetchRetry(fetch, {
retries: 3,
- retryDelay: function (attempt, error, response) {
+ retryDelay: function (attempt) {
return Math.pow(2, attempt) * 150 // 150, 300, 600
},
})
diff --git a/lib/graphql/request.ts b/lib/graphql/request.ts
index de4bc0bc0..6f3a51e18 100644
--- a/lib/graphql/request.ts
+++ b/lib/graphql/request.ts
@@ -27,7 +27,7 @@ export async function request
(
fetch: cache(async function (url: URL | RequestInfo, params?: RequestInit) {
const wrappedFetch = fetchRetry(fetch, {
retries: 3,
- retryDelay: function (attempt, error, response) {
+ retryDelay: function (attempt) {
return Math.pow(2, attempt) * 150 // 150, 300, 600
},
})
diff --git a/types/components/form/signupForm.ts b/types/components/form/signupForm.ts
index 060c8d860..263aeb846 100644
--- a/types/components/form/signupForm.ts
+++ b/types/components/form/signupForm.ts
@@ -1,5 +1,3 @@
export type SignUpFormProps = {
- link?: { href: string; text: string }
- subtitle?: string
title: string
}