add isUnScreen switch

This commit is contained in:
Nastya 2024-12-21 21:58:59 +03:00
parent 9b1410abf8
commit 4210c752fc

@ -854,6 +854,24 @@ export default function StartPageSettings() {
Включить антифрод
</Typography>
</Box>
<Box sx={{ display: "flex", gap: "20px", alignItems: "center", mt: "20px" }}>
<CustomizedSwitch
checked={quiz.config?.isUnSc}
onChange={(e) => {
updateQuiz(quiz.id, (quiz) => {
quiz.config.isUnSc = e.target.checked;
});
}}
/>
<Typography
sx={{
fontWeight: 500,
color: theme.palette.grey3.main,
}}
>
Включить защиту от копирования
</Typography>
</Box>
</>
)}
</Box>