We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9552d commit e8e6d21Copy full SHA for e8e6d21
Frontend/src/components/question/Question.jsx
@@ -181,18 +181,19 @@ function Question() {
181
if (valueA === "Hard" || valueB === "Easy") return 1;
182
}
183
},
184
- ...(isAdmin ? [{
185
- field: "action",
+ {
+ field: "details",
186
width: 200,
187
resizable: false,
188
sortable: false,
189
- cellRenderer: editDeleteButtonComponent
190
- }] : [{
191
- field: "details",
+ cellRenderer: showDetailButtonComponent },
+ ...(isAdmin ? [{
+ field: "action",
192
193
194
195
- cellRenderer: showDetailButtonComponent }])
+ cellRenderer: editDeleteButtonComponent
196
+ }] : [])
197
];
198
199
return (
0 commit comments