Changeset 07f4e8b for frontend/src/Components/Forms
- Timestamp:
- 01/24/24 17:42:28 (10 months ago)
- Branches:
- master
- Children:
- 0f5aa27
- Parents:
- 5528b99
- Location:
- frontend/src/Components/Forms
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/Forms/AddHotelForm.js
r5528b99 r07f4e8b 119 119 return prevState + 1; 120 120 }) 121 if(!edit) 122 props.closeModal() 121 123 }} 122 124 > -
frontend/src/Components/Forms/AddRestaurantForm.js
r5528b99 r07f4e8b 82 82 e.preventDefault() 83 83 createRestaurant(formData, edit); 84 props.refresh((prevState) => { 85 return prevState + 1; 86 }) 84 props.refresh(Math.random()) 85 if(!edit) props.closeModal() 87 86 }} 88 87 > -
frontend/src/Components/Forms/AddRoomForm.js
r5528b99 r07f4e8b 13 13 hotelRoomDescription: "", 14 14 hotelRoomName: "", 15 num Beds: "",15 numOfBeds: "", 16 16 price: "", 17 17 kitchenAvailable: false, … … 58 58 type="number" 59 59 placeholder="Внесете го бројот на кревети" 60 value={formData.num Beds}61 name="num Beds"60 value={formData.numOfBeds} 61 name="numOfBeds" 62 62 onChange={onFormChange} 63 63 /> … … 117 117 style={{ backgroundColor: "#159895" }} 118 118 size="md" 119 onClick={() => { 120 console.log(formData); 119 onClick={(e) => { 120 e.preventDefault(); 121 props.refresh((prev) => { 122 return ++prev; 123 }) 121 124 createHotelRoom(formData); 125 props.closeModal(); 122 126 }} 123 127 > -
frontend/src/Components/Forms/AddTableAvailabilityForm.js
r5528b99 r07f4e8b 62 62 onClick={() => { 63 63 createTableAvailability(formData, props.table.tableId) 64 props.refresh(Math.random()) 65 props.close() 64 66 }} 65 67 > -
frontend/src/Components/Forms/AddTransportForm.js
r5528b99 r07f4e8b 11 11 transportName: "", 12 12 carBrand: "", 13 carType: false,13 carType: "", 14 14 carManufacturedYear: 1900, 15 15 noPassengers: 0, … … 107 107 createTransport(formData, edit); 108 108 props.refresh((prev) => { 109 return prev + 1;109 return ++prev; 110 110 }) 111 if(!edit) 112 props.closeModal() 111 113 }} 112 114 > -
frontend/src/Components/Forms/AddTripForm.js
r5528b99 r07f4e8b 232 232 console.log(wayPointNames); 233 233 for (let i = 0; i < routeCount - 1; i++) { 234 console.log(wayPoints[i]) 234 235 wayPointNames.push(wayPoints[i].value); 235 236 } -
frontend/src/Components/Forms/EditRoomForm.js
r5528b99 r07f4e8b 28 28 } = useGet(`/hotel/rooms/${props.room.hotelRoomId}/available`) 29 29 30 console.log(`/hotel/rooms/${props.room.hotelRoomId}/available`) 31 30 32 !isLoading && console.log(data) 31 33 … … 42 44 <tr> 43 45 <th>#</th> 44 <<<<<<< HEAD45 46 <th>Oд</th> 46 47 <th>До</th> 47 48 <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)53 49 </tr> 54 50 </thead>
Note:
See TracChangeset
for help on using the changeset viewer.