Merge pull request #5 from SamandarTurgunboyev/samandar

ammenities
This commit is contained in:
Samandar Turg'unboev
2025-11-05 18:45:37 +05:00
committed by GitHub

View File

@@ -1046,7 +1046,8 @@ const StepOne = ({
<Command> <Command>
<CommandList> <CommandList>
<CommandGroup heading={t("Mavjud qulayliklar")}> <CommandGroup heading={t("Mavjud qulayliklar")}>
{badge?.data?.data?.results?.map((item: any) => { {amenitiesData?.data?.data?.results?.map(
(item: any) => {
const currentBadges = const currentBadges =
form.getValues("amenities") ?? []; form.getValues("amenities") ?? [];
const selected = currentBadges.includes(item.id); const selected = currentBadges.includes(item.id);
@@ -1087,7 +1088,8 @@ const StepOne = ({
{item.name} {item.name}
</CommandItem> </CommandItem>
); );
})} },
)}
</CommandGroup> </CommandGroup>
</CommandList> </CommandList>
</Command> </Command>