+
+ {truck.plate}
+ {truck.bookingRef}
+
+
+
+ Select containers to return:
+
+ {truck.containers.map((container) => (
+ {
+ if (e.currentTarget.checked) {
+ setSelectedContainers([...selectedContainers, container.containerNumber]);
+ } else {
+ setSelectedContainers(selectedContainers.filter(c => c !== container.containerNumber));
+ }
+ }}
+ />
+ ))}
+
+
+
+
+
+ setReturnDate(e.currentTarget.value)}
+ required
+ />
+
+
+ )}
+