Changeset 5528b99 for frontend/src/Components/Forms
- Timestamp:
- 01/16/24 16:34:03 (11 months ago)
- Branches:
- master
- Children:
- 07f4e8b
- Parents:
- e6c2521
- Location:
- frontend/src/Components/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/Forms/AddHotelForm.js
re6c2521 r5528b99 119 119 return prevState + 1; 120 120 }) 121 if(!edit)122 props.closeModal()123 121 }} 124 122 > -
frontend/src/Components/Forms/AddRestaurantForm.js
re6c2521 r5528b99 85 85 return prevState + 1; 86 86 }) 87 props.closeModal()88 87 }} 89 88 > -
frontend/src/Components/Forms/AddRoomForm.js
re6c2521 r5528b99 13 13 hotelRoomDescription: "", 14 14 hotelRoomName: "", 15 num OfBeds: "",15 numBeds: "", 16 16 price: "", 17 17 kitchenAvailable: false, … … 58 58 type="number" 59 59 placeholder="Внесете го бројот на кревети" 60 value={formData.num OfBeds}61 name="num OfBeds"60 value={formData.numBeds} 61 name="numBeds" 62 62 onChange={onFormChange} 63 63 /> … … 117 117 style={{ backgroundColor: "#159895" }} 118 118 size="md" 119 onClick={(e) => { 120 e.preventDefault(); 121 props.refresh((prev) => { 122 return ++prev; 123 }) 119 onClick={() => { 120 console.log(formData); 124 121 createHotelRoom(formData); 125 props.closeModal();126 122 }} 127 123 > -
frontend/src/Components/Forms/AddTransportForm.js
re6c2521 r5528b99 11 11 transportName: "", 12 12 carBrand: "", 13 carType: "",13 carType: false, 14 14 carManufacturedYear: 1900, 15 15 noPassengers: 0, … … 107 107 createTransport(formData, edit); 108 108 props.refresh((prev) => { 109 return ++prev;109 return prev + 1; 110 110 }) 111 if(!edit)112 props.closeModal()113 111 }} 114 112 > -
frontend/src/Components/Forms/EditRoomForm.js
re6c2521 r5528b99 28 28 } = useGet(`/hotel/rooms/${props.room.hotelRoomId}/available`) 29 29 30 console.log(`/hotel/rooms/${props.room.hotelRoomId}/available`)31 32 30 !isLoading && console.log(data) 33 31 … … 44 42 <tr> 45 43 <th>#</th> 44 <<<<<<< HEAD 46 45 <th>Oд</th> 47 46 <th>До</th> 48 47 <th>Цена</th> 48 ======= 49 <th>Достапно од</th> 50 <th>Достапно до</th> 51 <th>Број на соби</th> 52 >>>>>>> parent of ac19a0c (authContext impl, admin panel impl, search bar fixes, reservations listings impl) 49 53 </tr> 50 54 </thead>
Note:
See TracChangeset
for help on using the changeset viewer.