-
Hotel Image
+
+

{
+ e.currentTarget.style.display = 'none';
+ if (e.currentTarget.nextElementSibling) {
+ (e.currentTarget.nextElementSibling as HTMLElement).style.display = 'flex';
+ }
+ }}
+ />
+
+ Hotel Image
+
- {/* Details Section - Full height/width usage */}
{product.name}
@@ -45,17 +92,15 @@ export default function HotelDetails({ product, onAddToCart, addedToCart }: Hote
- {product.refundable && (
-
- Free cancellation available
-
- )}
-
+
Price per night
+
Total for {product.nights} night{product.nights > 1 ? 's' : ''}
-
${product.pricePerNight * product.nights}
+
/ {product.nights} nights
diff --git a/web/src/lib/hotel-utils.ts b/web/src/lib/hotel-utils.ts
index e660f26..9a1c693 100644
--- a/web/src/lib/hotel-utils.ts
+++ b/web/src/lib/hotel-utils.ts
@@ -21,7 +21,6 @@ export interface Hotel {
checkOut: string;
dateIndex: number;
amenities: string[];
- refundable: boolean;
pricePerNight: number;
nights: number;
}
@@ -42,7 +41,6 @@ export const transformProduct = (p: HotelProduct): Hotel => {
checkOut: checkOut.toLocaleDateString('en-US', { month: 'short', day: 'numeric' }),
dateIndex: date_index,
amenities: metadata?.amenities || [],
- refundable: metadata?.refundable || false,
pricePerNight: metadata?.base_price || 100,
nights,
};