Skip to content

Commit

Permalink
TASK #00000 : Add Supervisor column in teachers list table
Browse files Browse the repository at this point in the history
  • Loading branch information
mahajanmahesh935 committed Jan 21, 2025
1 parent f6e4754 commit 46a32f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@
"ACTIVE_MEMBERS": "Active Members",
"ACTIVE_LEARNERS": "Active Students",
"ARCHIVED_LEARNERS": " Archived Students",
"PROGRAM":"Program"
"PROGRAM":"Program",
"SUPERVISOR":"Supervisor"
}
}
5 changes: 4 additions & 1 deletion src/components/UserTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ const UserTable: React.FC<UserTableProps> = ({

const programField = user?.customFields.find((field: any) => field.label === "PROGRAM");
const program = programField?.value || "-";
const supervisorField = user?.customFields.find((field: any) => field.label === "SUPERVISOR");
const supervisor = supervisorField?.value || "-";

return {
userId: user.userId,
Expand Down Expand Up @@ -755,7 +757,8 @@ const UserTable: React.FC<UserTableProps> = ({
stateCode: stateField?.code,
districtCode: districtField?.code,
blockCode: blockField?.code,
program :program
program :program,
supervisor : supervisor
// centers: null,
// Programs: null,
};
Expand Down
1 change: 1 addition & 0 deletions src/data/tableColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const getTeacherColumns = (t: any, isMobile: boolean) => {
// { key: "blocks", titleKey: "TABLE_TITLE.BLOCK", width: 130},
{ key: "centers", titleKey: "TABLE_TITLE.CENTER", width: 180 },
{ key: "program", titleKey: "TABLE_TITLE.PROGRAM", width: 180 },
{ key: "supervisor", titleKey: "TABLE_TITLE.SUPERVISOR", width: 180 },
// { key: "updatedBy", titleKey: "TABLE_TITLE.UPDATED_BY", width: 160 },
// { key: "createdBy", titleKey: "TABLE_TITLE.CREATED_BY", width: 130, sortDirection: SortDirection.Ascend },
// { key: "createdAt", titleKey: "TABLE_TITLE.CREATED_DATE", width: 160, sortDirection: SortDirection.Ascend },
Expand Down

0 comments on commit 46a32f2

Please sign in to comment.