Skip to content

Commit 2077878

Browse files
committed
TaskSolutions: показывать количество попыток
1 parent 6b08c57 commit 2077878

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

hwproj.front/src/components/Solutions/TaskSolutions.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,13 @@ const TaskSolutions: FC<ITaskSolutionsProps> = (props) => {
162162
<QuestionMark style={{fontSize: 15}}/>
163163
</Badge>}/>
164164
{student !== undefined && <Tab label="Последнее решение"/>}
165-
{arrayOfRatedSolutions.length > 0 && <Tab label="Предыдущие попытки"/>}
165+
{arrayOfRatedSolutions.length > 0 && <Tab label={
166+
<Stack direction="row" spacing={1}>
167+
<div>Предыдущие попытки</div>
168+
<Chip size={"small"}
169+
color={"default"}
170+
label={(arrayOfRatedSolutions.length)}/>
171+
</Stack>}/>}
166172
</Tabs>
167173
{tabValue === 0 && <Grid item style={{marginTop: '5px'}}>
168174
<TaskQuestions forMentor={forMentor}

0 commit comments

Comments
 (0)