feat: add CertificateForm and CertificateResult components for managing intern certificates
- Implemented CertificateForm for uploading certificate templates and displaying project details. - Created CertificateResult to show generated certificates with pagination and search functionality. - Added EligibleInternTable component to display eligible interns and their progress. - Updated CertificateListPage to reflect changes in project listing styles. - Enhanced MentorProjectCard with dynamic icon rendering. - Introduced useProjectInternProgress hook for fetching intern progress data. - Modified ProjectService to include task details in project responses. - Updated project types to accommodate new task structures.
This commit is contained in:
@@ -53,7 +53,8 @@ export const getProjectById = async (
|
||||
): Promise<ProjectDetail> => {
|
||||
const res = await api.get(`/project-api/get/${id}`);
|
||||
const raw = res.data.data;
|
||||
|
||||
console.log("raw fields:", Object.keys(raw));
|
||||
console.log("raw full:", raw);
|
||||
return {
|
||||
...raw,
|
||||
members: raw.members.map((m: any) => ({
|
||||
|
||||
Reference in New Issue
Block a user