amenities update
This commit is contained in:
@@ -75,7 +75,13 @@ export interface GetOneTours {
|
|||||||
image: string;
|
image: string;
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
ticket_amenities: number[];
|
ticket_amenities: {
|
||||||
|
icon_name: string;
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
name_ru: string;
|
||||||
|
name_uz: string;
|
||||||
|
}[];
|
||||||
ticket_included_services: [
|
ticket_included_services: [
|
||||||
{
|
{
|
||||||
image: string;
|
image: string;
|
||||||
|
|||||||
@@ -156,10 +156,11 @@ const StepOne = ({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 🔹 Qulayliklar (amenities)
|
form.setValue(
|
||||||
form.setValue("amenities", tour.ticket_amenities);
|
"amenities",
|
||||||
|
tour.ticket_amenities.map((e) => e.id),
|
||||||
|
);
|
||||||
|
|
||||||
// 🔹 Xizmatlar (hotel_services)
|
|
||||||
form.setValue(
|
form.setValue(
|
||||||
"hotel_services",
|
"hotel_services",
|
||||||
tour.ticket_included_services?.map((s) => ({
|
tour.ticket_included_services?.map((s) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user