result __из__
This commit is contained in:
parent
0dfa011cb1
commit
aab37f2a1d
@ -27,8 +27,10 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const isMobile = useRootContainerSize() < 650;
|
const isMobile = useRootContainerSize() < 650;
|
||||||
const isTablet = useRootContainerSize() < 1000;
|
const isTablet = useRootContainerSize() < 1000;
|
||||||
const { settings, show_badge, quizId, preview } = useQuizSettings();
|
const { settings, show_badge, quizId, questions, preview } = useQuizSettings();
|
||||||
const setCurrentQuizStep = useQuizViewStore((state) => state.setCurrentQuizStep);
|
const setCurrentQuizStep = useQuizViewStore((state) => state.setCurrentQuizStep);
|
||||||
|
//Список засчитанных баллов для балловых квизов
|
||||||
|
const pointsSum = useQuizViewStore((state) => state.pointsSum);
|
||||||
const spec = settings.cfg.spec;
|
const spec = settings.cfg.spec;
|
||||||
const vkMetrics = useVkMetricsGoals(settings.cfg.vkMetricsNumber);
|
const vkMetrics = useVkMetricsGoals(settings.cfg.vkMetricsNumber);
|
||||||
const yandexMetrics = useYandexMetricsGoals(settings.cfg.yandexMetricsNumber);
|
const yandexMetrics = useYandexMetricsGoals(settings.cfg.yandexMetricsNumber);
|
||||||
@ -209,6 +211,27 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
{resultQuestion.content.text}
|
{resultQuestion.content.text}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
|
{settings.cfg?.score && (
|
||||||
|
<>
|
||||||
|
<Typography
|
||||||
|
sx={{
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
fontSize: "30px",
|
||||||
|
m: "30px 0",
|
||||||
|
fontWeight: 600,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Ваши баллы
|
||||||
|
</Typography>
|
||||||
|
<Typography
|
||||||
|
sx={{
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
fontSize: "30px",
|
||||||
|
fontWeight: 600,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{pointsSum} из {questions.filter((e) => e.type != "result").length}
|
||||||
|
</Typography>
|
||||||
<TextAccordion
|
<TextAccordion
|
||||||
headerText={
|
headerText={
|
||||||
<Typography
|
<Typography
|
||||||
@ -235,6 +258,8 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
<PointSystemResultList />
|
<PointSystemResultList />
|
||||||
</Box>
|
</Box>
|
||||||
</TextAccordion>
|
</TextAccordion>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
{show_badge && (
|
{show_badge && (
|
||||||
|
Loading…
Reference in New Issue
Block a user