From 6184f2893a90d7e2af3ff2c91b9368b92658fef2 Mon Sep 17 00:00:00 2001 From: ArtChaos189 Date: Wed, 27 Dec 2023 23:34:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=86=D0=B2=D0=B5=D1=82=20=D0=BB=D0=BE=D0=B3=D0=BE=D1=82=D0=B8?= =?UTF-8?q?=D0=BF=D0=B0=20=D0=B2=20=D0=BC=D0=BE=D0=B1=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Landing/images/icons/QuizLogo.tsx | 21 ++++++++------------- src/pages/startPage/EditPage.tsx | 4 ++-- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/pages/Landing/images/icons/QuizLogo.tsx b/src/pages/Landing/images/icons/QuizLogo.tsx index 0c12503d..76ae536d 100644 --- a/src/pages/Landing/images/icons/QuizLogo.tsx +++ b/src/pages/Landing/images/icons/QuizLogo.tsx @@ -2,19 +2,14 @@ import { useTheme } from "@mui/material"; interface Props { width: number; + color?: string; } -export default function QuizLogo({ width }: Props) { +export default function QuizLogo({ width, color = "#151515" }: Props) { const theme = useTheme(); return ( - + diff --git a/src/pages/startPage/EditPage.tsx b/src/pages/startPage/EditPage.tsx index 7d1c0a2a..dfa2e031 100755 --- a/src/pages/startPage/EditPage.tsx +++ b/src/pages/startPage/EditPage.tsx @@ -105,6 +105,7 @@ export default function EditPage() { const quizConfig = quiz?.config; const disableTest = quiz === undefined ? true : quiz.config.type === null; const [openBranchingPage, setOpenBranchingPage] = useState(false); + const [buttonText, setButtonText] = useState("Опубликовать"); const openBranchingPageHC = () => { if (!openBranchingPage) { @@ -164,7 +165,6 @@ export default function EditPage() { const isConditionMet = [1].includes(currentStep) && !openBranchingPanel && quizConfig.type !== "form"; - const [buttonText, setButtonText] = useState("Опубликовать"); const handleClickStatusQuiz = () => { if (Object.keys(whyCantCreatePublic).length === 0) { if (buttonText === "Опубликовать") { @@ -204,7 +204,7 @@ export default function EditPage() { }} > - {isMobile ? : } + {isMobile ? : }