2023-04-15 09:10:59 +00:00
|
|
|
|
import { Box, Button, Typography, useTheme } from "@mui/material";
|
2023-05-03 23:25:35 +00:00
|
|
|
|
import { SettingForm } from "./SettingForm";
|
2023-05-07 14:01:03 +00:00
|
|
|
|
import { DescriptionForm } from "./DescriptionForm/DescriptionForm";
|
|
|
|
|
import { ResultListForm } from "./ResultListForm";
|
2023-05-10 17:35:30 +00:00
|
|
|
|
import CustomWrapper from "@ui_kit/CustomWrapper";
|
2023-05-03 23:25:35 +00:00
|
|
|
|
import Plus from "@icons/Plus";
|
|
|
|
|
import Info from "@icons/Info";
|
|
|
|
|
import IconPlus from "@icons/IconPlus";
|
2023-05-07 14:01:03 +00:00
|
|
|
|
import ArrowLeft from "@icons/questionsPage/arrowLeft";
|
|
|
|
|
import React from "react";
|
2023-10-16 14:23:44 +00:00
|
|
|
|
import { quizStore } from "@root/quizes";
|
|
|
|
|
import { useParams } from "react-router-dom";
|
2023-04-15 09:10:59 +00:00
|
|
|
|
|
2023-04-23 08:39:34 +00:00
|
|
|
|
export const Setting = () => {
|
2023-10-16 14:23:44 +00:00
|
|
|
|
const { listQuizes, updateQuizesList } = quizStore();
|
|
|
|
|
const params = Number(useParams().quizId);
|
|
|
|
|
const handleNext = () => {
|
|
|
|
|
updateQuizesList(params, { step: listQuizes[params].step + 1 });
|
|
|
|
|
};
|
2023-04-15 09:10:59 +00:00
|
|
|
|
const theme = useTheme();
|
|
|
|
|
return (
|
2023-10-16 14:23:44 +00:00
|
|
|
|
<Box sx={{ maxWidth: "796px" }}>
|
2023-04-15 09:10:59 +00:00
|
|
|
|
<Box sx={{ display: "flex", alignItems: "center", mb: "40px" }}>
|
|
|
|
|
<Typography sx={{ pr: "10px" }} variant="h5">
|
|
|
|
|
Настройки результатов
|
|
|
|
|
</Typography>
|
|
|
|
|
<Info />
|
|
|
|
|
<Button
|
|
|
|
|
disableRipple
|
|
|
|
|
sx={{
|
|
|
|
|
ml: "auto",
|
|
|
|
|
width: "73px",
|
|
|
|
|
height: "19px",
|
|
|
|
|
color: "#7E2AEA",
|
|
|
|
|
textDecoration: "underline",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
background: "none",
|
|
|
|
|
textDecoration: "underline",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
variant="text"
|
|
|
|
|
>
|
|
|
|
|
Свернуть
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
<CustomWrapper sx={{ mt: "30px" }} text="Показывать результат" />
|
|
|
|
|
<CustomWrapper sx={{ mt: "30px" }} text="Настройки почты" />
|
2023-10-16 14:23:44 +00:00
|
|
|
|
<Box
|
|
|
|
|
sx={{ display: "flex", alignItems: "center", mb: "15px", mt: "15px" }}
|
|
|
|
|
>
|
2023-04-15 09:10:59 +00:00
|
|
|
|
<Typography variant="p1" sx={{ color: "#4D4D4D", fontSize: "14px" }}>
|
|
|
|
|
Создайте результат
|
|
|
|
|
</Typography>
|
|
|
|
|
<Button
|
|
|
|
|
disableRipple
|
|
|
|
|
sx={{
|
|
|
|
|
ml: "auto",
|
|
|
|
|
height: "19px",
|
|
|
|
|
color: "#7E2AEA",
|
|
|
|
|
textDecoration: "underline",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
|
|
|
|
|
"&:hover": {
|
|
|
|
|
background: "none",
|
|
|
|
|
textDecoration: "underline",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
variant="text"
|
|
|
|
|
>
|
|
|
|
|
Развернуть все
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
<CustomWrapper result={true} text="Показывать результат" />
|
2023-10-16 14:23:44 +00:00
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
width: "100%",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
columnGap: "10px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
boxSizing: "border-box",
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "1px",
|
|
|
|
|
backgroundPosition: "bottom",
|
|
|
|
|
backgroundRepeat: "repeat-x",
|
|
|
|
|
backgroundSize: "20px 1px",
|
|
|
|
|
backgroundImage:
|
|
|
|
|
"radial-gradient(circle, #7E2AEA 6px, #F2F3F7 1px)",
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<IconPlus />
|
2023-04-15 09:10:59 +00:00
|
|
|
|
</Box>
|
|
|
|
|
<CustomWrapper result={true} text="Настройки почты" />
|
|
|
|
|
<Box sx={{ pt: "30px", display: "flex", alignItems: "center" }}>
|
|
|
|
|
<Plus />
|
|
|
|
|
<Typography component="div" sx={{ ml: "auto" }}>
|
2023-10-16 14:23:44 +00:00
|
|
|
|
<Button
|
|
|
|
|
variant="outlined"
|
|
|
|
|
sx={{ padding: "10px 20px", borderRadius: "8px" }}
|
|
|
|
|
>
|
|
|
|
|
<ArrowLeft />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button variant="contained" sx={{ ml: "10px" }} onClick={handleNext}>
|
2023-04-15 09:10:59 +00:00
|
|
|
|
Настроить форму
|
2023-05-07 14:01:03 +00:00
|
|
|
|
</Button>
|
2023-04-15 09:10:59 +00:00
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
|
|
<SettingForm />
|
2023-04-23 08:39:34 +00:00
|
|
|
|
<ResultListForm />
|
2023-04-15 09:10:59 +00:00
|
|
|
|
<DescriptionForm />
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
2023-04-23 08:39:34 +00:00
|
|
|
|
};
|