From b33633ce1839aa1c08b01dfc6b47ca91715f8e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Jim=C3=A9nez?= Date: Mon, 17 Jun 2024 11:38:03 -0500 Subject: [PATCH] feat: staff endpoint in view class buttons --- .../Classes/Class/ClassPage/Actions.jsx | 6 +- src/features/Classes/ClassesTable/columns.jsx | 6 +- .../Courses/CourseDetailTable/columns.jsx | 4 +- src/features/Main/data/_test_/api.test.js | 25 +++++++- src/features/Main/data/api.js | 20 ++++++ src/helpers/__test__/index.test.js | 62 ++++++++++++++++++- src/helpers/index.js | 16 +++++ 7 files changed, 128 insertions(+), 11 deletions(-) diff --git a/src/features/Classes/Class/ClassPage/Actions.jsx b/src/features/Classes/Class/ClassPage/Actions.jsx index 482c5484..ac2d62c3 100644 --- a/src/features/Classes/Class/ClassPage/Actions.jsx +++ b/src/features/Classes/Class/ClassPage/Actions.jsx @@ -10,6 +10,8 @@ import { } from '@edx/paragon'; import { MoreVert } from '@edx/paragon/icons'; +import { setAssignStaffRole } from 'helpers'; + import AddClass from 'features/Courses/AddClass'; import EnrollStudent from 'features/Classes/EnrollStudent'; @@ -47,9 +49,7 @@ const Actions = ({ previousPage }) => {