diff --git a/frontend/app/components/admin-section.tsx b/frontend/app/components/admin-section.tsx index bbb8f79..9572916 100644 --- a/frontend/app/components/admin-section.tsx +++ b/frontend/app/components/admin-section.tsx @@ -2,7 +2,7 @@ "use client"; import { useState } from "react"; -import { AdminMenu, AdminCollectionsRequests, AdminManageCollections, AdminManageUsers } from "@/app/components/ui/admin"; +import { AdminMenu, AdminManageRequests, AdminManageCollections, AdminManageUsers } from "@/app/components/ui/admin"; import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; @@ -26,17 +26,17 @@ const AdminSection: React.FC = () => { setShowCollections={setShowCollections} /> - {/* New Requests Section */} + {/* Manage Requests Section */} {showNewRequest ? ( - + ) : null} - {/* Public Collections Section */} + {/* Manage Collections Section */} {showCollections ? ( ) : null} - {/* Users Section */} + {/* Manage Users Section */} {showUsers ? ( ) : null} diff --git a/frontend/app/components/ui/admin/admin-collections-requests.tsx b/frontend/app/components/ui/admin/admin-manage-requests.tsx similarity index 99% rename from frontend/app/components/ui/admin/admin-collections-requests.tsx rename to frontend/app/components/ui/admin/admin-manage-requests.tsx index 91821d2..a73799a 100644 --- a/frontend/app/components/ui/admin/admin-collections-requests.tsx +++ b/frontend/app/components/ui/admin/admin-manage-requests.tsx @@ -6,7 +6,7 @@ import { IconSpinner } from '@/app/components/ui/icons'; import { toast } from 'react-toastify'; import Swal from 'sweetalert2'; -export default function AdminCollectionsRequests() { +export default function AdminManageRequests() { const [userRequests, setUserRequests] = useState([]); const [loading, setLoading] = useState(true); const [isRefreshed, setIsRefreshed] = useState(true); // Track whether the data has been refreshed diff --git a/frontend/app/components/ui/admin/index.ts b/frontend/app/components/ui/admin/index.ts index 94f7fef..d253df4 100644 --- a/frontend/app/components/ui/admin/index.ts +++ b/frontend/app/components/ui/admin/index.ts @@ -1,11 +1,11 @@ import AdminMenu from './admin-menu'; import AdminManageUsers from './admin-manage-users'; -import AdminCollectionsRequests from './admin-collections-requests'; +import AdminManageRequests from './admin-manage-requests'; import AdminManageCollections from './admin-manage-collections'; export { AdminMenu, - AdminCollectionsRequests, + AdminManageRequests, AdminManageCollections, AdminManageUsers }; \ No newline at end of file