Skip to content

Commit

Permalink
refactor: removed assign instructor modal and it's components
Browse files Browse the repository at this point in the history
  • Loading branch information
01001110J committed Jun 13, 2024
1 parent e76c712 commit f913ba9
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 318 deletions.
47 changes: 0 additions & 47 deletions src/features/Instructors/AssignInstructors/AssignTable.jsx

This file was deleted.

74 changes: 0 additions & 74 deletions src/features/Instructors/AssignInstructors/_test_/index.test.jsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/features/Instructors/AssignInstructors/columns.jsx

This file was deleted.

130 changes: 0 additions & 130 deletions src/features/Instructors/AssignInstructors/index.jsx

This file was deleted.

13 changes: 0 additions & 13 deletions src/features/Instructors/AssignInstructors/index.scss

This file was deleted.

9 changes: 0 additions & 9 deletions src/features/Instructors/data/_test_/redux.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
import {
updateCurrentPage,
updateFilters,
updateClassSelected,
addRowSelect,
deleteRowSelect,
resetRowSelect,
Expand Down Expand Up @@ -119,14 +118,6 @@ describe('Instructors redux tests', () => {
expect(store.getState().instructors.filters).toEqual(expectState);
});

test('update classSelected', () => {
const classSelected = 'ccx1';
const expectState = classSelected;

store.dispatch(updateClassSelected(classSelected));
expect(store.getState().instructors.classSelected).toEqual(expectState);
});

test('Add rowsSelected', () => {
const rowSelected = 'Instructor01';
const expectState = rowSelected;
Expand Down
4 changes: 0 additions & 4 deletions src/features/Instructors/data/slice.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ export const instructorsSlice = createSlice({
updateFilters: (state, { payload }) => {
state.filters = payload;
},
updateClassSelected: (state, { payload }) => {
state.classSelected = payload;
},
assignInstructorsRequest: (state) => {
state.assignInstructors.status = RequestStatus.LOADING;
},
Expand Down Expand Up @@ -109,7 +106,6 @@ export const {
fetchInstructorsDataSuccess,
fetchInstructorsDataFailed,
updateFilters,
updateClassSelected,
assignInstructorsRequest,
assignInstructorsSuccess,
assignInstructorsFailed,
Expand Down

0 comments on commit f913ba9

Please sign in to comment.