diff --git a/src/pages/bookings/bookings.js b/src/pages/bookings/bookings.js index 4f6746a3fd3f70235861abebfb0e1d1dcce2a86c..94de8367365982f64a87dfd7b0e945acfec60381 100644 --- a/src/pages/bookings/bookings.js +++ b/src/pages/bookings/bookings.js @@ -124,18 +124,15 @@ const BookingsPage = () => { {!isLoading && !error && bookings.length > 0 && ( <Stack spacing={4} minW={"50vw"}> {bookings.map((booking) => ( - <Box key={booking.id} p={4} borderWidth={1} borderRadius={4} > - <Text> - <strong>Location:</strong> {booking.location} - </Text> - <Text> - <strong>Address:</strong> {booking.address} + <Box key={booking._id} p={4} borderWidth={1} borderRadius={4} > + <Text fontSize={20}> + <strong>Street Address:</strong> {booking.street_address} </Text> <Text> - <strong>Time of Booking:</strong> {booking.startTime} + Time of Booking: {booking.startTime.toLocaleString('en-GB', {timeZone: 'Europe/London', hour: 'numeric', year: 'numeric', month: 'short', day: 'numeric'})} </Text> <Text> - <strong>Expiry Time:</strong> {booking.endTime} + Expiry Time: {booking.endTime.toLocaleString('en-GB', {timeZone: 'Europe/London', hour: 'numeric', year: 'numeric', month: 'short', day: 'numeric'})} </Text> <Stack>