Skip to content

Commit

Permalink
Merge pull request #174 from upendraTekdi/admin_uk
Browse files Browse the repository at this point in the history
Task #225316: add type in center list , add space for reassign button on team leader and users tables
  • Loading branch information
itsvick authored Aug 29, 2024
2 parents 3409d1f + 618e8ec commit c4adbd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/data/tableColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getUserTableColumns = (t: any, isMobile: boolean) => {
// { key: "createdBy", titleKey: "TABLE_TITLE.CREATED_BY", width: 130, sortDirection: SortDirection.Ascend },
// { key: "createdAt", titleKey: "TABLE_TITLE.CREATED_DATE", width: 160, sortDirection: SortDirection.Ascend },
{ key: "updatedAt", titleKey: "TABLE_TITLE.UPDATED_DATE", width: 160},
{ key: "actions", titleKey: "TABLE_TITLE.ACTIONS", width: 150 , isSortable: false },
{ key: "actions", titleKey: "TABLE_TITLE.ACTIONS", width: 170 , isSortable: false },
];

return generateColumns(t, configs, isMobile);
Expand All @@ -53,7 +53,7 @@ export const getTLTableColumns = (t: any, isMobile: boolean) => {
{ key: "createdBy", titleKey: "TABLE_TITLE.CREATED_BY", width: 130, },
{ key: "createdAt", titleKey: "TABLE_TITLE.CREATED_DATE", width: 160, },
{ key: "updatedAt", titleKey: "TABLE_TITLE.UPDATED_DATE", width: 160, },
{ key: "actions", titleKey: "TABLE_TITLE.ACTIONS", width: 150 , isSortable: false},
{ key: "actions", titleKey: "TABLE_TITLE.ACTIONS", width: 170 , isSortable: false},
];

return generateColumns(t, configs, isMobile);
Expand Down
9 changes: 6 additions & 3 deletions src/pages/centers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,12 @@ const Center: React.FC = () => {

result?.forEach((item: any, index: number) => {
const cohortType =
item?.customFields?.map((field: any) =>
firstLetterInUpperCase(field?.value)
) ?? "-";
item?.customFields?.find(
(field: any) => field.label === "TYPE_OF_COHORT"
)?.value ?? "-";

const formattedCohortType =
cohortType !== "-" ? firstLetterInUpperCase(cohortType) : "-";

const counts = memberCounts[index] || {
totalActiveMembers: 0,
Expand Down

0 comments on commit c4adbd4

Please sign in to comment.