Changeset 79a0317 for imaps-frontend/src/pages/AdminPage
- Timestamp:
- 01/21/25 03:08:24 (3 months ago)
- Branches:
- main
- Parents:
- 0c6b92a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/src/pages/AdminPage/AdminPage.jsx
r0c6b92a r79a0317 11 11 import Profile from "../../components/Profile/Profile.jsx"; 12 12 import Toast from "../../components/Toast/Toast.jsx"; 13 import ListReports from "../../components/ListReports/ListReports.jsx"; 13 14 14 15 const renderTile = ({data, isDragging}, handleApprove, handleDeny, openMapInfoModal, openPublishForm) => ( … … 82 83 gmaps_url: elem.gmaps_url, 83 84 image_url: card, 84 })).filter((tile) => tile.status === " INVALID");85 })).filter((tile) => tile.status === "PENDING"); 85 86 86 87 setPendingMaps(mapTiles); … … 145 146 146 147 try { 147 await httpService.post(url, formData); // Assuming formData contains all required fields148 await httpService.post(url, formData); 148 149 setPendingMaps((prev) => prev.filter((map) => map.mapName !== formData.mapName)); 149 150 alert(`Map "${formData.mapName}" published successfully.`); … … 187 188 <Profile></Profile> 188 189 <h1>Pending Maps for Approval</h1> 190 <hr/> 189 191 190 192 {publishFormMap && ( … … 210 212 /> 211 213 </div> 214 <hr/> 212 215 {isMapInfoModalOpen && ( 213 216 <MapInfoModal … … 223 226 )} 224 227 {toastMessage && <Toast message={toastMessage} type={toastType} onClose={() => setToastMessage(null)}/>} 225 228 <hr/> 229 <ListReports></ListReports> 226 230 </div> 227 231 );
Note:
See TracChangeset
for help on using the changeset viewer.