diff --git a/src/pages/Questions/QuestionsPage.tsx b/src/pages/Questions/QuestionsPage.tsx index 19836cc7..5410c9de 100755 --- a/src/pages/Questions/QuestionsPage.tsx +++ b/src/pages/Questions/QuestionsPage.tsx @@ -84,6 +84,7 @@ export default function QuestionsPage() { background: theme.palette.brightPurple.main, fontSize: "18px", }} + onClick={handleNext} > Следующий шаг diff --git a/src/pages/startPage/StartPageSettings.tsx b/src/pages/startPage/StartPageSettings.tsx index 13dc6dfd..c112c2c1 100755 --- a/src/pages/startPage/StartPageSettings.tsx +++ b/src/pages/startPage/StartPageSettings.tsx @@ -108,6 +108,11 @@ export default function StartPageSettings({ handleNext }: HandleNext) { updateQuizesList(params, {config: SPageClone }) } + const [mobileVersion, setMobileVersion] = React.useState(false); + const MobileVersionHC = (bool:boolean) => { + setMobileVersion(bool) + } + return ( <> Стартовая страница @@ -238,16 +243,23 @@ export default function StartPageSettings({ handleNext }: HandleNext) { display: backgroundType === "image" ? "flex" : "none", flexDirection: "column" }}> - - Изображение - + + + Изображение + + + + {MobileVersionHC(!mobileVersion)}} /> + {mobileVersion ? + + + Изображение для мобильной версии + + + : + <> + } + diff --git a/src/ui_kit/switchStepPages.tsx b/src/ui_kit/switchStepPages.tsx index dd6c0d97..f8edb205 100755 --- a/src/ui_kit/switchStepPages.tsx +++ b/src/ui_kit/switchStepPages.tsx @@ -3,6 +3,7 @@ import StepOne from "../pages/startPage/stepOne"; import Steptwo from "../pages/startPage/steptwo"; import StartPageSettings from "../pages/startPage/StartPageSettings"; import QuestionsPage from "../pages/Questions/QuestionsPage"; +import ContactFormPage from "../pages/ContactFormPage/ContactFormPage"; interface Props { activeStep: number, @@ -25,7 +26,7 @@ export default function SwitchStepPages({activeStep = 1, handleNext }: Props) { return (); break; case 5: - return (); + return (); break; case 6: return ();