From 4889c2f9e6570719115bd23590c0433e4c66db98 Mon Sep 17 00:00:00 2001 From: Prince Kumar Date: Tue, 3 Sep 2024 19:32:58 +0530 Subject: [PATCH] Table component multiselect (#157) --- src/components/Admin/JobEvents.tsx | 138 +++++------ src/components/NewTableComponent/Table.jsx | 209 ----------------- src/components/NewTableComponent/Table.tsx | 259 +++++++++++++++++++++ src/dto/JobDto.ts | 2 +- src/dto/ResumeDto.ts | 2 +- src/dto/SalaryDto.ts | 12 + src/dto/StudentDto.ts | 1 + src/dto/events.ts | 78 +++++++ src/helpers/recruiter/types.ts | 2 + tsconfig.json | 2 +- 10 files changed, 410 insertions(+), 295 deletions(-) delete mode 100644 src/components/NewTableComponent/Table.jsx create mode 100644 src/components/NewTableComponent/Table.tsx create mode 100644 src/dto/events.ts diff --git a/src/components/Admin/JobEvents.tsx b/src/components/Admin/JobEvents.tsx index f8cea203..36d4e4e7 100644 --- a/src/components/Admin/JobEvents.tsx +++ b/src/components/Admin/JobEvents.tsx @@ -213,6 +213,7 @@ const PromoteStudent = ({ }, [roundNumber]); const updateEvent = async () => { + console.log(studentIds); await promoteStudent({ studentIds }, eventId); toast.success("Successfully promoted!"); onClose(); @@ -227,7 +228,7 @@ const PromoteStudent = ({
Promote / Demote students :{" "} - {students.map((student) => `${student.name}, `)} to
+ {students.map((student) => `${student.user.name}, `)} to