main
Last change
on this file since f5b256e was f5b256e, checked in by Aleksandar Panovski <apano77@…>, 3 weeks ago |
Big change done works with handle_reservation_update() trigger
|
-
Property mode
set to
100644
|
File size:
486 bytes
|
Line | |
---|
1 | import React from 'react';
|
---|
2 |
|
---|
3 | const TimeSlotList = ({ timeSlots }) => {
|
---|
4 | return (
|
---|
5 | <div>
|
---|
6 | <h3>Available Time Slots</h3>
|
---|
7 | {timeSlots.length > 0 ? (
|
---|
8 | <ul>
|
---|
9 | {timeSlots.map((slot, index) => (
|
---|
10 | <li key={index}>{slot}</li>
|
---|
11 | ))}
|
---|
12 | </ul>
|
---|
13 | ) : (
|
---|
14 | <p>No available time slots.</p>
|
---|
15 | )}
|
---|
16 | </div>
|
---|
17 | );
|
---|
18 | };
|
---|
19 |
|
---|
20 | export default TimeSlotList;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.