настройка времени квиза

This commit is contained in:
Nastya 2025-09-18 23:31:31 +03:00
parent f2cd81f29b
commit 3e122600e5
2 changed files with 95 additions and 1 deletions

0
CHANGELOG.md Normal file

@ -893,7 +893,101 @@ export default function StartPageSettings() {
Запретить шаг назад
</Typography>
</Box>
{!isSmallMonitor &&<SwitchAI />}
<Box sx={{ display: "flex", alignItems: "center", mt: "20px", flexWrap: "wrap",
gap: isMobile ? "20px" : "34px" }}>
<Box sx ={{
display: "flex",
alignItems: "center",
gap: "20px"
}}>
<CustomizedSwitch
checked={quiz.config?.backBlocked}
onChange={(e) => {
updateQuiz(quiz.id, (quiz) => {
quiz.config.backBlocked = e.target.checked;
});
}}
/>
<Typography
sx={{
fontWeight: 500,
color: theme.palette.grey3.main,
}}
>
Включить таймер вопросов
</Typography>
</Box>
<Box
sx={{
display: "flex",
gap: "15px"
}}
>
<Box
sx={{
display: "inline-flex",
alignItems: "center"
}}
>
<CustomTextField
placeholder="00"
value={quiz.config.info.law}
onChange={(e) =>
updateQuiz(quiz.id, (quiz) => {
quiz.config.info.law = e.target.value;
})
}
sx={{
width: "51px",
height: "48px"
}}
/>
<Typography
sx={{
fontWeight: 500,
color: theme.palette.grey3.main,
ml: "5px"
}}
>
мин.
</Typography>
</Box>
<Box
sx={{
display: "inline-flex",
alignItems: "center"
}}
>
<CustomTextField
placeholder="00"
value={quiz.config.info.law}
onChange={(e) =>
updateQuiz(quiz.id, (quiz) => {
quiz.config.info.law = e.target.value;
})
}
sx={{
width: "51px",
height: "48px"
}}
/>
<Typography
sx={{
fontWeight: 500,
color: theme.palette.grey3.main,
ml: "5px"
}}
>
сек.
</Typography>
</Box>
</Box>
</Box>
{!isSmallMonitor && <SwitchAI />}
</>
)}
</Box>