File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed
hwproj.front/src/components/Courses Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -516,14 +516,24 @@ export const CourseExperimental: FC<ICourseExperimentalProps> = (props) => {
516516 borderRadius : 10
517517 }
518518 } } >
519- { props . isMentor && filterAdded && < Button
520- onClick = { ( ) => {
521- setHideDeferred ( false )
522- setShowOnlyGroupedTest ( undefined )
523- } }
524- style = { { borderRadius : 8 , marginBottom : 10 } } variant = { "contained" } size = { "medium" } >
525- Показать все задания
526- </ Button > }
519+ { props . isMentor && filterAdded && < Stack direction = { "column" } alignItems = { "center" } >
520+ < Button
521+ fullWidth
522+ onClick = { ( ) => {
523+ setHideDeferred ( false )
524+ setShowOnlyGroupedTest ( undefined )
525+ } }
526+ style = { { borderRadius : 8 , marginBottom : 10 } } variant = { "outlined" } size = { "medium" } >
527+ Показать все задания
528+ </ Button >
529+ < Typography
530+ variant = { "caption" } > { hideDeferred
531+ ? "только опубликованные задания"
532+ : showOnlyGroupedTest
533+ ? `контрольные работы '${ showOnlyGroupedTest } '`
534+ : "" }
535+ </ Typography >
536+ </ Stack > }
527537 { props . isMentor && ! filterAdded && ( homeworks [ 0 ] ?. id || 1 ) > 0 && < Button
528538 onClick = { addNewHomework }
529539 style = { { borderRadius : 8 , marginBottom : 10 } } variant = { "text" } size = { "small" } >
You can’t perform that action at this time.
0 commit comments