From a7b193c96d2214a05c6ad067dcf21fb972168211 Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Tue, 10 Dec 2024 15:02:14 +0100 Subject: [PATCH] fix(SW-1143) removed async from fallback --- .../(standard)/select-hotel/map/loading.tsx | 5 ----- .../(standard)/select-hotel/map/page.tsx | 17 +++++++++++------ .../SelectHotelMapContainerSkeleton.tsx | 2 +- .../SelectHotel/SelectHotelSkeleton.tsx | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/loading.tsx diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/loading.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/loading.tsx deleted file mode 100644 index fefdc7682..000000000 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { SelectHotelMapContainerSkeleton } from "@/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainerSkeleton" - -export default function Loading() { - return -} diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx index 47af6c424..29caabded 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx @@ -44,12 +44,17 @@ export default async function SelectHotelMapPage({ return (
- + } + > + +
) diff --git a/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainerSkeleton.tsx b/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainerSkeleton.tsx index 75821477f..e4ec6b7d0 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainerSkeleton.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainerSkeleton.tsx @@ -8,7 +8,7 @@ type Props = { count?: number } -export async function SelectHotelMapContainerSkeleton({ count = 2 }: Props) { +export function SelectHotelMapContainerSkeleton({ count = 2 }: Props) { return (
diff --git a/components/HotelReservation/SelectHotel/SelectHotelSkeleton.tsx b/components/HotelReservation/SelectHotel/SelectHotelSkeleton.tsx index 8fb2b7a3b..0a6913dec 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelSkeleton.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelSkeleton.tsx @@ -8,7 +8,7 @@ type Props = { count?: number } -export async function SelectHotelSkeleton({ count = 4 }: Props) { +export function SelectHotelSkeleton({ count = 4 }: Props) { return (