crutch design theme
Some checks failed
Deploy / CreateImage (push) Failing after 1m18s
Deploy / DeployService (push) Has been skipped

This commit is contained in:
Nastya 2025-03-28 02:05:42 +03:00
parent f5cf23fdef
commit 28a1ee950e

@ -99,6 +99,8 @@ export const DesignFilling = ({
const theme = useTheme(); const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down(830)); const isMobile = useMediaQuery(theme.breakpoints.down(830));
const heightBar = heightSidebar + 51 + 88 + 36; const heightBar = heightSidebar + 51 + 88 + 36;
const CONST_QUIZ_THEME = quiz?.config.theme !== undefined && quiz?.config.theme === "crutch_FurnitureABC" ? "" : quiz?.config.theme || "";
return ( return (
<Box <Box
@ -144,7 +146,7 @@ export const DesignFilling = ({
<Box sx={{ display: "flex", gap: "20px", flexWrap: "wrap" }}> <Box sx={{ display: "flex", gap: "20px", flexWrap: "wrap" }}>
<DesignGroup <DesignGroup
title="Со светлым фоном" title="Со светлым фоном"
value={quiz?.config.design ? "" : quiz?.config.theme || ""} value={CONST_QUIZ_THEME ? "" : quiz?.config.theme || ""}
list={LIGHT_THEME_BUTTONS} list={LIGHT_THEME_BUTTONS}
onChange={(name) => onChange={(name) =>
updateQuiz(quiz?.id, (quiz) => { updateQuiz(quiz?.id, (quiz) => {
@ -155,7 +157,7 @@ export const DesignFilling = ({
/> />
<DesignGroup <DesignGroup
title="С тёмным фоном" title="С тёмным фоном"
value={quiz?.config.design ? "" : quiz?.config.theme || ""} value={CONST_QUIZ_THEME ? "" : quiz?.config.theme || ""}
list={DARK_THEME_BUTTONS} list={DARK_THEME_BUTTONS}
onChange={(name) => onChange={(name) =>
updateQuiz(quiz?.id, (quiz) => { updateQuiz(quiz?.id, (quiz) => {