Refactor internify components and services
- Updated LoginInternify to remove unnecessary state initialization. - Cleaned up NotificationList by removing unused code and fixing button click handler. - Added project_id prop to InternClaimCert for better data handling. - Enhanced CertificateNotAvailable to include claim functionality with loading and error states. - Modified HomeHeader to display a default user name. - Corrected ProjectTimeline to import ProjectTask from the correct type file. - Implemented loading and error handling in CertificateListPage. - Improved MentorProjectDetailPage to handle task updates and navigation correctly. - Enhanced MentorSettingsPage to manage profile picture errors and state. - Updated AddInternsDialog to use the correct hook for fetching interns. - Refactored EditSubmissionTask to handle task updates and errors more effectively. - Improved MentorProjectCard to include project archiving functionality. - Removed deprecated useInterns hook and replaced it with useUser for fetching user data. - Added new useMentors hook for managing mentor-related operations. - Cleaned up CertificateService by removing unused verifyCertificate function. - Created MentorServices for managing mentor data operations. - Updated UserService to include fetching Mahasiswa data and removed unused UserServices file.
This commit is contained in:
@@ -50,6 +50,9 @@ import ViewInternSubmission from "./Pages/Internify/mentor/ViewInternSubmission"
|
||||
import ProtectedRoutes from "./Pages/utils/ProtectedRoute";
|
||||
import CertificateDetail from "./Pages/Internify/mentor/CertificateForm";
|
||||
import CertificateResult from "./Pages/Internify/mentor/CertificateResult";
|
||||
import AdminMentorPage from "./Pages/MentorPage";
|
||||
import CreateMentorForm from "./Pages/CreateMentorForm";
|
||||
import EditMentorForm from "./Pages/EditMentorForm";
|
||||
import NotFoundPage from "./Pages/NotFoundPage";
|
||||
|
||||
function App() {
|
||||
@@ -86,6 +89,9 @@ function App() {
|
||||
<Route path="/edit-faq/:id" element={<EditFaq />}></Route>
|
||||
<Route path="/edit-feedback/:id" element={<EditFeedback />}></Route>
|
||||
<Route path="/edit-lowongan/:id" element={<EditLowongan />}></Route>
|
||||
<Route path="/mentor-admin" element={<AdminMentorPage/>}/>
|
||||
<Route path="/create-mentor" element={<CreateMentorForm/>}/>
|
||||
<Route path="/edit-mentor/:id" element={<EditMentorForm/>}/>
|
||||
|
||||
</Route>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user