2023-12-13 23:34:34 +00:00
|
|
|
|
import { quizApi } from "@api/quiz";
|
2023-12-18 15:52:59 +00:00
|
|
|
|
import { LogoutButton } from "@ui_kit/LogoutButton";
|
2023-05-31 10:50:30 +00:00
|
|
|
|
import BackArrowIcon from "@icons/BackArrowIcon";
|
2023-11-13 18:04:51 +00:00
|
|
|
|
import { Burger } from "@icons/Burger";
|
2023-12-13 23:34:34 +00:00
|
|
|
|
import EyeIcon from "@icons/EyeIcon";
|
2023-11-13 18:04:51 +00:00
|
|
|
|
import { PenaLogoIcon } from "@icons/PenaLogoIcon";
|
|
|
|
|
import {
|
2023-12-16 23:10:24 +00:00
|
|
|
|
Box,
|
|
|
|
|
Button,
|
|
|
|
|
Container,
|
|
|
|
|
FormControl,
|
|
|
|
|
IconButton,
|
|
|
|
|
Switch,
|
|
|
|
|
TextField,
|
|
|
|
|
Typography,
|
|
|
|
|
useMediaQuery,
|
|
|
|
|
useTheme,
|
2023-11-13 18:04:51 +00:00
|
|
|
|
} from "@mui/material";
|
2023-12-18 15:52:59 +00:00
|
|
|
|
import { decrementCurrentStep, resetEditConfig, setQuizes, updateQuiz } from "@root/quizes/actions";
|
2023-11-13 18:04:51 +00:00
|
|
|
|
import { useCurrentQuiz } from "@root/quizes/hooks";
|
|
|
|
|
import { useQuizStore } from "@root/quizes/store";
|
2023-05-31 10:50:30 +00:00
|
|
|
|
import CustomAvatar from "@ui_kit/Header/Avatar";
|
2023-11-13 18:04:51 +00:00
|
|
|
|
import NavMenuItem from "@ui_kit/Header/NavMenuItem";
|
|
|
|
|
import PenaLogo from "@ui_kit/PenaLogo";
|
2023-05-31 10:50:30 +00:00
|
|
|
|
import Sidebar from "@ui_kit/Sidebar";
|
2023-11-13 18:04:51 +00:00
|
|
|
|
import Stepper from "@ui_kit/Stepper";
|
|
|
|
|
import SwitchStepPages from "@ui_kit/switchStepPages";
|
2023-12-13 23:34:34 +00:00
|
|
|
|
import { isAxiosError } from "axios";
|
|
|
|
|
import { enqueueSnackbar } from "notistack";
|
2023-12-17 23:29:31 +00:00
|
|
|
|
import React, { useEffect, useLayoutEffect, useState } from "react";
|
2023-11-14 14:22:10 +00:00
|
|
|
|
import { Link, useNavigate } from "react-router-dom";
|
2023-12-13 23:34:34 +00:00
|
|
|
|
import useSWR from "swr";
|
2023-12-19 11:35:59 +00:00
|
|
|
|
import { useDebouncedCallback } from "use-debounce";
|
2023-09-21 07:00:08 +00:00
|
|
|
|
import { SidebarMobile } from "./Sidebar/SidebarMobile";
|
2023-12-16 04:20:07 +00:00
|
|
|
|
import { cleanQuestions, setQuestions } from "@root/questions/actions";
|
2023-12-19 11:35:59 +00:00
|
|
|
|
import { updateOpenBranchingPanel, updateCanCreatePublic } from "@root/uiTools/actions";
|
2023-12-14 09:40:53 +00:00
|
|
|
|
import { BranchingPanel } from "../Questions/BranchingPanel";
|
|
|
|
|
import { useQuestionsStore } from "@root/questions/store";
|
|
|
|
|
import { useQuizes } from "@root/quizes/hooks";
|
2023-12-13 23:34:34 +00:00
|
|
|
|
import { questionApi } from "@api/question";
|
2023-12-14 09:40:53 +00:00
|
|
|
|
import { useUiTools } from "@root/uiTools/store";
|
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
import Logotip from "../Landing/images/icons/QuizLogo";
|
2023-12-18 15:52:59 +00:00
|
|
|
|
import { clearUserData } from "@root/user";
|
|
|
|
|
import { clearAuthToken } from "@frontend/kitui";
|
|
|
|
|
import { logout } from "@api/auth";
|
2023-12-19 11:35:59 +00:00
|
|
|
|
import { AnyTypedQuizQuestion } from "@model/questionTypes/shared";
|
2023-12-13 23:34:34 +00:00
|
|
|
|
|
2023-12-07 22:56:31 +00:00
|
|
|
|
export default function EditPage() {
|
2023-12-16 23:10:24 +00:00
|
|
|
|
const quiz = useCurrentQuiz();
|
|
|
|
|
const { editQuizId } = useQuizStore();
|
2023-12-19 11:35:59 +00:00
|
|
|
|
const { questions } = useQuestionsStore();
|
2023-12-13 23:34:34 +00:00
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
useEffect(() => {
|
|
|
|
|
const getData = async () => {
|
|
|
|
|
const quizes = await quizApi.getList();
|
|
|
|
|
setQuizes(quizes);
|
2023-12-16 04:20:07 +00:00
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
const questions = await questionApi.getList({ quiz_id: editQuizId });
|
|
|
|
|
setQuestions(questions);
|
|
|
|
|
};
|
|
|
|
|
getData();
|
|
|
|
|
}, []);
|
2023-12-13 23:34:34 +00:00
|
|
|
|
|
2023-12-19 11:35:59 +00:00
|
|
|
|
const { openBranchingPanel, whyCantCreatePublic, canCreatePublic } = useUiTools();
|
2023-12-16 23:10:24 +00:00
|
|
|
|
const theme = useTheme();
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
const currentStep = useQuizStore((state) => state.currentStep);
|
|
|
|
|
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
|
|
|
|
|
const isMobile = useMediaQuery(theme.breakpoints.down(660));
|
|
|
|
|
const [mobileSidebar, setMobileSidebar] = useState<boolean>(false);
|
|
|
|
|
const quizConfig = quiz?.config;
|
2023-12-17 22:34:22 +00:00
|
|
|
|
const disableTest = quiz === undefined ? true : (quiz.config.type === null)
|
2023-03-03 23:54:19 +00:00
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (editQuizId === null) navigate("/list");
|
|
|
|
|
}, [navigate, editQuizId]);
|
2023-11-14 14:22:10 +00:00
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
useEffect(
|
|
|
|
|
() => () => {
|
|
|
|
|
resetEditConfig();
|
|
|
|
|
cleanQuestions();
|
|
|
|
|
},
|
|
|
|
|
[]
|
|
|
|
|
);
|
2023-12-19 11:35:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const updateQuestionHint = useDebouncedCallback((questions:AnyTypedQuizQuestion[]) => {
|
|
|
|
|
console.log("пересчитываю")
|
|
|
|
|
|
|
|
|
|
const problems:any = {}
|
|
|
|
|
|
|
|
|
|
questions.forEach((question) => {
|
|
|
|
|
//Если не участвует в ветвлении, или безтиповый, или резулт - он нам не интересен
|
|
|
|
|
if (question.type === null
|
|
|
|
|
|| question.type === "result"
|
|
|
|
|
|| question.content.rule.parentId.length === 0) return
|
|
|
|
|
|
|
|
|
|
//если есть дети, но нет дефолта - логическая ошибка. Так нельзя
|
|
|
|
|
if (question.content.rule.children.length > 0 && question.content.rule.default.length === 0) {
|
|
|
|
|
problems[question.content.id] = {
|
|
|
|
|
name: question.title,
|
|
|
|
|
problems: ["Не выбран дефолтный вопрос"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
useUiTools.setState({ whyCantCreatePublic: problems })
|
|
|
|
|
if (Object.keys(problems).length > 0) { updateCanCreatePublic(false) } else { updateCanCreatePublic(true) }
|
|
|
|
|
console.log(problems)
|
|
|
|
|
console.log(Object.keys(problems).length > 0)
|
|
|
|
|
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
updateQuestionHint(questions)
|
|
|
|
|
console.log(canCreatePublic)
|
|
|
|
|
}, [questions]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-17 23:29:31 +00:00
|
|
|
|
console.log(currentStep)
|
2023-12-18 14:12:22 +00:00
|
|
|
|
console.log(quizConfig)
|
2023-11-14 14:22:10 +00:00
|
|
|
|
|
2023-12-18 15:52:59 +00:00
|
|
|
|
async function handleLogoutClick() {
|
|
|
|
|
const [, logoutError] = await logout();
|
|
|
|
|
|
|
|
|
|
if (logoutError) {
|
|
|
|
|
return enqueueSnackbar(logoutError);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clearAuthToken();
|
|
|
|
|
clearUserData();
|
|
|
|
|
navigate("/");
|
|
|
|
|
}
|
2023-11-14 14:22:10 +00:00
|
|
|
|
|
2023-12-19 11:35:59 +00:00
|
|
|
|
if (!quizConfig) return <></>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{/*хедер*/}
|
|
|
|
|
<Container
|
|
|
|
|
component="nav"
|
|
|
|
|
maxWidth={false}
|
|
|
|
|
disableGutters
|
|
|
|
|
sx={{
|
|
|
|
|
px: "16px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
height: isMobile ? "51px" : "80px",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
bgcolor: isMobile ? "#333647" : "white",
|
|
|
|
|
borderBottom: "1px solid #E3E3E3",
|
|
|
|
|
zIndex: theme.zIndex.drawer + 1,
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Link to="/" style={{ display: "flex" }}>
|
2023-12-18 15:52:59 +00:00
|
|
|
|
{isMobile ? <Logotip width={100} /> : <Logotip width={124} />}
|
2023-12-16 23:10:24 +00:00
|
|
|
|
</Link>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: isMobile ? "none" : "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
ml: "37px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Link to="/list">
|
|
|
|
|
<IconButton sx={{ p: "6px" }}>
|
|
|
|
|
<BackArrowIcon />
|
|
|
|
|
</IconButton>
|
|
|
|
|
</Link>
|
|
|
|
|
<FormControl fullWidth variant="standard">
|
|
|
|
|
<TextField
|
|
|
|
|
fullWidth
|
|
|
|
|
id="project-name"
|
|
|
|
|
placeholder="Название проекта окно"
|
|
|
|
|
sx={{
|
|
|
|
|
width: "270px",
|
|
|
|
|
"& .MuiInputBase-root": {
|
|
|
|
|
height: "34px",
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
p: 0,
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
inputProps={{
|
|
|
|
|
sx: {
|
|
|
|
|
height: "20px",
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
lineHeight: "20px",
|
|
|
|
|
p: "7px",
|
|
|
|
|
color: "black",
|
|
|
|
|
"&::placeholder": {
|
|
|
|
|
opacity: 1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</FormControl>
|
|
|
|
|
</Box>
|
2023-12-19 11:35:59 +00:00
|
|
|
|
<Button onClick={() => {console.log(canCreatePublic)}}>dddddd</Button>
|
|
|
|
|
<Button onClick={() => {console.log(whyCantCreatePublic)}}>dddddd</Button>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
{isTablet ? (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
ml: "auto",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{isMobile ? (
|
|
|
|
|
<Burger
|
|
|
|
|
onClick={() => setMobileSidebar(!mobileSidebar)}
|
|
|
|
|
style={{ fontSize: "30px", color: "white", cursor: "pointer" }}
|
|
|
|
|
/>
|
|
|
|
|
) : (
|
2023-12-18 15:52:59 +00:00
|
|
|
|
<Box>
|
|
|
|
|
<CustomAvatar
|
|
|
|
|
sx={{
|
|
|
|
|
ml: "11px",
|
|
|
|
|
backgroundColor: theme.palette.orange.main,
|
|
|
|
|
height: "36px",
|
|
|
|
|
width: "36px",
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Box>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
)}
|
|
|
|
|
</Box>
|
|
|
|
|
) : (
|
|
|
|
|
<>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
gap: "30px",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
ml: "20px",
|
|
|
|
|
}}
|
2023-09-15 12:37:12 +00:00
|
|
|
|
>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
<NavMenuItem text="Редактировать" isActive />
|
|
|
|
|
<NavMenuItem text="Заявки" />
|
|
|
|
|
<NavMenuItem text="Аналитика" />
|
|
|
|
|
<NavMenuItem text="История" />
|
|
|
|
|
<NavMenuItem text="Помощь" />
|
|
|
|
|
</Box>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
ml: "auto",
|
|
|
|
|
gap: "15px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<CustomAvatar
|
|
|
|
|
sx={{
|
|
|
|
|
ml: "11px",
|
|
|
|
|
backgroundColor: theme.palette.orange.main,
|
|
|
|
|
height: "36px",
|
|
|
|
|
width: "36px",
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2023-12-18 15:52:59 +00:00
|
|
|
|
<LogoutButton onClick={handleLogoutClick} />
|
2023-12-16 23:10:24 +00:00
|
|
|
|
</Box>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</Container>
|
2023-11-13 18:04:51 +00:00
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: isMobile ? "block" : "flex",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{isMobile ? <SidebarMobile open={mobileSidebar} /> : <Sidebar />}
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
background: theme.palette.background.default,
|
|
|
|
|
width: "100%",
|
2023-12-17 22:34:22 +00:00
|
|
|
|
padding: isMobile ? "16px 16px 140px 16px" : "25px 25px 140px 25px",
|
2023-12-16 23:10:24 +00:00
|
|
|
|
height: "calc(100vh - 80px)",
|
|
|
|
|
overflow: "auto",
|
|
|
|
|
boxSizing: "border-box",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{/* Выбор текущей страницы редактирования чего-либо находится здесь */}
|
|
|
|
|
{quizConfig && (
|
|
|
|
|
<>
|
|
|
|
|
<Stepper activeStep={currentStep} />
|
|
|
|
|
<SwitchStepPages
|
|
|
|
|
activeStep={currentStep}
|
|
|
|
|
quizType={quizConfig.type}
|
|
|
|
|
quizResults={quizConfig.results}
|
|
|
|
|
quizStartPageType={quizConfig.startpageType}
|
|
|
|
|
/>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</Box>
|
2023-12-18 15:52:59 +00:00
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
position: "absolute",
|
|
|
|
|
left: 0,
|
|
|
|
|
bottom: 0,
|
|
|
|
|
width: "100%",
|
|
|
|
|
padding: isMobile ? "20px 16px" : "20px 40px 20px 250px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "flex-start",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
gap: "15px",
|
|
|
|
|
background: "#FFF",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{[1].includes(currentStep) && !openBranchingPanel && quizConfig.type !== "form" && (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
gap: "15px",
|
|
|
|
|
padding: "18px",
|
|
|
|
|
background: "#fff",
|
|
|
|
|
borderRadius: "12px",
|
|
|
|
|
boxShadow: "0px 10px 30px #e7e7e7",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Switch
|
|
|
|
|
checked={openBranchingPanel}
|
|
|
|
|
onChange={(e) => updateOpenBranchingPanel(e.target.checked)}
|
2023-09-15 12:37:12 +00:00
|
|
|
|
sx={{
|
2023-12-18 15:52:59 +00:00
|
|
|
|
width: 50,
|
|
|
|
|
height: 30,
|
|
|
|
|
padding: 0,
|
|
|
|
|
"& .MuiSwitch-switchBase": {
|
2023-12-16 23:10:24 +00:00
|
|
|
|
padding: 0,
|
2023-12-18 15:52:59 +00:00
|
|
|
|
margin: "2px",
|
|
|
|
|
transitionDuration: "300ms",
|
|
|
|
|
"&.Mui-checked": {
|
|
|
|
|
transform: "translateX(20px)",
|
|
|
|
|
color: theme.palette.brightPurple.main,
|
|
|
|
|
"& + .MuiSwitch-track": {
|
|
|
|
|
backgroundColor: "#E8DCF9",
|
|
|
|
|
opacity: 1,
|
|
|
|
|
border: 0,
|
2023-12-16 23:10:24 +00:00
|
|
|
|
},
|
2023-12-18 15:52:59 +00:00
|
|
|
|
"&.Mui-disabled + .MuiSwitch-track": { opacity: 0.5 },
|
2023-12-16 23:10:24 +00:00
|
|
|
|
},
|
2023-12-18 15:52:59 +00:00
|
|
|
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
|
|
|
color: theme.palette.mode === "light" ? theme.palette.grey[100] : theme.palette.grey[600],
|
2023-12-16 23:10:24 +00:00
|
|
|
|
},
|
2023-12-18 15:52:59 +00:00
|
|
|
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
|
|
|
opacity: theme.palette.mode === "light" ? 0.7 : 0.3,
|
2023-12-16 23:10:24 +00:00
|
|
|
|
},
|
2023-12-18 15:52:59 +00:00
|
|
|
|
},
|
|
|
|
|
"& .MuiSwitch-thumb": {
|
|
|
|
|
boxSizing: "border-box",
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 25,
|
|
|
|
|
},
|
|
|
|
|
"& .MuiSwitch-track": {
|
|
|
|
|
borderRadius: 13,
|
|
|
|
|
backgroundColor: theme.palette.mode === "light" ? "#E9E9EA" : "#39393D",
|
|
|
|
|
opacity: 1,
|
|
|
|
|
transition: theme.transitions.create(["background-color"], {
|
|
|
|
|
duration: 500,
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<Box>
|
|
|
|
|
<Typography sx={{ fontWeight: "bold", color: "#4D4D4D" }}>Логика ветвления</Typography>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
</Box>
|
2023-12-18 15:52:59 +00:00
|
|
|
|
</Box>
|
|
|
|
|
)}
|
|
|
|
|
{disableTest ? (
|
|
|
|
|
<Button
|
|
|
|
|
variant="contained"
|
|
|
|
|
disabled
|
|
|
|
|
sx={{
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
lineHeight: "18px",
|
|
|
|
|
height: "34px",
|
|
|
|
|
minWidth: "130px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Тестовый просмотр
|
|
|
|
|
</Button>
|
|
|
|
|
) : (
|
|
|
|
|
<a href={`/view`} target="_blank" rel="noreferrer" style={{ textDecoration: "none" }}>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
<Button
|
2023-12-18 15:52:59 +00:00
|
|
|
|
variant="contained"
|
|
|
|
|
sx={{
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
lineHeight: "18px",
|
|
|
|
|
height: "34px",
|
|
|
|
|
minWidth: "130px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Тестовый просмотр
|
|
|
|
|
</Button>
|
|
|
|
|
</a>
|
|
|
|
|
)}
|
2023-12-18 16:38:46 +00:00
|
|
|
|
|
2023-12-18 15:52:59 +00:00
|
|
|
|
<Button
|
|
|
|
|
variant="outlined"
|
|
|
|
|
sx={{
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
lineHeight: "18px",
|
|
|
|
|
height: "34px",
|
|
|
|
|
border: `1px solid ${theme.palette.brightPurple.main}`,
|
|
|
|
|
backgroundColor: quiz?.status === "start" ? theme.palette.brightPurple.main : "transparent",
|
|
|
|
|
color: quiz?.status === "start" ? "#FFFFFF" : theme.palette.brightPurple.main,
|
|
|
|
|
}}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
updateQuiz(quiz?.id, (state) => {
|
|
|
|
|
state.status = quiz?.status === "start" ? "stop" : "start";
|
|
|
|
|
});
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quiz?.status === "start" ? "Стоп" : "Старт"}
|
|
|
|
|
</Button>
|
2023-12-19 11:35:59 +00:00
|
|
|
|
{quiz?.status === "start" && <Box
|
|
|
|
|
component={Link}
|
|
|
|
|
sx={{
|
|
|
|
|
color: "#7e2aea",
|
|
|
|
|
fontSize: "14px"
|
|
|
|
|
}}
|
|
|
|
|
target="_blank" to={"https://hbpn.link/" + quiz.qid}>https://hbpn.link/{quiz.qid}</Box>}
|
2023-12-18 15:52:59 +00:00
|
|
|
|
</Box>
|
2023-12-16 23:10:24 +00:00
|
|
|
|
</Box>
|
|
|
|
|
</>
|
|
|
|
|
);
|
2023-09-15 12:37:12 +00:00
|
|
|
|
}
|