Skip to content

Commit 02253fd

Browse files
authored
Merge pull request #1108 from morozov-av/issue-1098
issue-1098 Remove Which to grade cocumn from readings view
2 parents edd5e1f + 5d2a3cb commit 02253fd

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

  • bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading

bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/AssignmentReadingsTable.tsx

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { DraggingExerciseColumns } from "@/types/components/editableTableCell";
1010
import { Exercise } from "@/types/exercises";
1111

1212
import { ActivitiesRequiredCell } from "./components/ActivitiesRequiredCell";
13-
import { EditDropdownValueHeaderReadings } from "./components/EditAllReadings/EditDropdownValueHeaderReadings";
1413
import { EditInputValueHeaderReadings } from "./components/EditAllReadings/EditInputValueHeaderReadings";
1514
import { SetCurrentEditReading, MouseUpHandler } from "./types";
1615

@@ -171,32 +170,6 @@ export const AssignmentReadingsTable = ({
171170
)}
172171
/>
173172

174-
{/* Which to grade */}
175-
<Column
176-
resizeable={false}
177-
field="which_to_grade"
178-
header={() => (
179-
<EditDropdownValueHeaderReadings
180-
field="which_to_grade"
181-
label="Which to grade"
182-
defaultValue=""
183-
/>
184-
)}
185-
style={{ width: "12rem" }}
186-
bodyStyle={{ padding: 0 }}
187-
body={(rowData: Exercise) => (
188-
<EditableCellFactory
189-
fieldName="which_to_grade"
190-
itemId={rowData.id}
191-
handleMouseDown={handleMouseDown}
192-
handleChange={handleChange}
193-
value={rowData.which_to_grade}
194-
questionType={rowData.question_type}
195-
isDragging={startItemId !== null}
196-
/>
197-
)}
198-
/>
199-
200173
<Column resizeable={false} rowReorder style={{ width: "3rem" }} />
201174
</DataTable>
202175
<TableSelectionOverlay

0 commit comments

Comments
 (0)