feat(SW-1012): add ternary expression for hotel images
This commit is contained in:
@@ -124,7 +124,9 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
||||
<Suspense fallback={<BreadcrumbsSkeleton />}>
|
||||
<Breadcrumbs />
|
||||
</Suspense>
|
||||
{images?.length && <PreviewImages images={images} hotelName={name} />}
|
||||
{images?.length ? (
|
||||
<PreviewImages images={images} hotelName={name} />
|
||||
) : null}
|
||||
</header>
|
||||
<TabNavigation
|
||||
restaurantTitle={getRestaurantHeading(detailedFacilities)}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { ChildBedTypeEnum, type PaymentMethodEnum } from "@/constants/booking"
|
||||
import { dt } from "@/lib/dt"
|
||||
import { toLang } from "@/server/utils"
|
||||
|
||||
import {
|
||||
@@ -18,7 +17,7 @@ import { RoomPackageCodeEnum } from "@/types/components/hotelReservation/selectR
|
||||
import { CurrencyEnum } from "@/types/enums/currency"
|
||||
import { FacilityEnum } from "@/types/enums/facilities"
|
||||
import { PackageTypeEnum } from "@/types/enums/packages"
|
||||
import { RestaurantData, RoomData } from "@/types/hotel"
|
||||
import type { RestaurantData, RoomData } from "@/types/hotel"
|
||||
|
||||
const ratingsSchema = z
|
||||
.object({
|
||||
|
||||
Reference in New Issue
Block a user