From 238a54e1d6c00bf693b69841a80cc62a03bc0737 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 10 Mar 2025 12:37:57 +0000 Subject: [PATCH] add created at column --- .../Instructors/configureInstructorsCols.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/components/Instructors/configureInstructorsCols.tsx b/frontend/src/components/Instructors/configureInstructorsCols.tsx index 18ac600..7112cde 100644 --- a/frontend/src/components/Instructors/configureInstructorsCols.tsx +++ b/frontend/src/components/Instructors/configureInstructorsCols.tsx @@ -73,6 +73,18 @@ export const loadColumns = async ( editable: hasUpdatePermission, }, + { + field: 'createdAt', + headerName: 'Created At', + flex: 1, + minWidth: 120, + filterable: false, + headerClassName: 'datagrid--header', + cellClassName: 'datagrid--cell', + valueFormatter: ({ value }) => new Date(value).toLocaleString(), + editable: false, + }, + { field: 'courses',