fix(SW-769): removed categoryname enum from pointOfInterestSchema and use z.string() instead
This commit is contained in:
@@ -2,14 +2,11 @@ import { poiVariants } from "@/components/Maps/Markers/Poi/variants"
|
||||
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import {
|
||||
PointOfInterestCategoryNameEnum,
|
||||
PointOfInterestGroupEnum,
|
||||
} from "@/types/hotel"
|
||||
import type { PointOfInterestGroupEnum } from "@/types/hotel"
|
||||
|
||||
export interface PoiMarkerProps extends VariantProps<typeof poiVariants> {
|
||||
group: PointOfInterestGroupEnum
|
||||
categoryName?: PointOfInterestCategoryNameEnum
|
||||
categoryName?: string
|
||||
size?: number
|
||||
className?: string
|
||||
}
|
||||
|
||||
@@ -26,26 +26,6 @@ export type GalleryImage = z.infer<typeof imageSchema>
|
||||
|
||||
export type PointOfInterest = z.output<typeof pointOfInterestSchema>
|
||||
|
||||
export enum PointOfInterestCategoryNameEnum {
|
||||
AIRPORT = "Airport",
|
||||
AMUSEMENT_PARK = "Amusement park",
|
||||
BUS_TERMINAL = "Bus terminal",
|
||||
FAIR = "Fair",
|
||||
HOSPITAL = "Hospital",
|
||||
HOTEL = "Hotel",
|
||||
MARKETING_CITY = "Marketing city",
|
||||
MUSEUM = "Museum",
|
||||
NEARBY_COMPANIES = "Nearby companies",
|
||||
PARKING_GARAGE = "Parking / Garage",
|
||||
RESTAURANT = "Restaurant",
|
||||
SHOPPING = "Shopping",
|
||||
SPORTS = "Sports",
|
||||
THEATRE = "Theatre",
|
||||
TOURIST = "Tourist",
|
||||
TRANSPORTATIONS = "Transportations",
|
||||
ZOO = "Zoo",
|
||||
}
|
||||
|
||||
export enum PointOfInterestGroupEnum {
|
||||
PUBLIC_TRANSPORT = "Public transport",
|
||||
ATTRACTIONS = "Attractions",
|
||||
|
||||
Reference in New Issue
Block a user