Merged in fix/SW-2706-label-room-features (pull request #2419)
fix(SW-2706): use labels for localize instead of API for room features * fix(SW-2706): use labels for localize instead of API for room features Approved-by: Tobias Johansson
This commit is contained in:
@@ -29,7 +29,10 @@ export default function RoomPackageFilter() {
|
||||
bookingRoom,
|
||||
selectedPackages,
|
||||
} = useRoomContext()
|
||||
const booking = useRatesStore((state) => state.booking)
|
||||
const { booking, packageOptions } = useRatesStore((state) => ({
|
||||
booking: state.booking,
|
||||
packageOptions: state.packageOptions,
|
||||
}))
|
||||
|
||||
async function deleteSelectedPackage(code: PackageEnum) {
|
||||
removeSelectedPackage(code)
|
||||
@@ -70,7 +73,10 @@ export default function RoomPackageFilter() {
|
||||
size={16}
|
||||
color="CurrentColor"
|
||||
/>
|
||||
{pkg.description}
|
||||
{
|
||||
packageOptions.find((pkgOption) => pkg.code === pkgOption.code)
|
||||
?.description
|
||||
}
|
||||
<ButtonRAC
|
||||
onPress={() => deleteSelectedPackage(pkg.code)}
|
||||
className={styles.removeButton}
|
||||
|
||||
Reference in New Issue
Block a user