From 8d44e3b8f1ccfbe485e87e7825d4a3263064850c Mon Sep 17 00:00:00 2001 From: Cyril Nxumalo Date: Fri, 30 Aug 2024 10:15:54 +0200 Subject: [PATCH] chore: Migrate deprecated Table to DataTable for LearnerActivityTable --- .../Admin/__snapshots__/Admin.test.jsx.snap | 200 +- .../LearnerActivityTable.test.jsx | 130 +- .../LearnerActivityTable.test.jsx.snap | 2811 +++++++++++------ .../data/hooks/useCourseEnrollments.js | 99 + .../data/tests/constants.js | 38 + src/components/LearnerActivityTable/index.jsx | 280 +- src/data/constants/table.js | 4 + src/eventTracking.js | 6 + 8 files changed, 2344 insertions(+), 1224 deletions(-) create mode 100644 src/components/LearnerActivityTable/data/hooks/useCourseEnrollments.js create mode 100644 src/components/LearnerActivityTable/data/tests/constants.js diff --git a/src/components/Admin/__snapshots__/Admin.test.jsx.snap b/src/components/Admin/__snapshots__/Admin.test.jsx.snap index 93e82b2841..f7f4b78f98 100644 --- a/src/components/Admin/__snapshots__/Admin.test.jsx.snap +++ b/src/components/Admin/__snapshots__/Admin.test.jsx.snap @@ -1621,7 +1621,7 @@ exports[` renders correctly with dashboard analytics data renders # cou > @@ -1630,7 +1630,7 @@ exports[` renders correctly with dashboard analytics data renders # cou > renders correctly with dashboard analytics data renders # cou >