feat: startPageSettings switch buttons

This commit is contained in:
IlyaDoronin 2023-10-31 16:07:01 +03:00
parent c7a670baf2
commit 8b239c505c

@ -793,14 +793,53 @@ export default function StartPageSettings() {
)}
</Box>
</Box>
{isSmallMonitor && (
<Box sx={{ maxWidth: "1160px", marginBottom: "60px" }}>
{formState === "content" && (
<Button
onClick={() => setFormState("design")}
sx={{
display: "block",
marginTop: "20px",
padding: "0",
fontWeight: "bold",
fontSize: "16px",
color: "#7E2AEA",
textDecoration: "underline",
textUnderlineOffset: "2px",
}}
>
🡰 Вернуться к дизайну
</Button>
)}
{formState === "design" && (
<Button
onClick={() => setFormState("content")}
sx={{
display: "block",
marginLeft: "auto",
marginTop: "20px",
padding: "0",
fontWeight: "bold",
fontSize: "16px",
color: "#7E2AEA",
textDecoration: "underline",
textUnderlineOffset: "2px",
}}
>
Далее заполнить контент 🡲
</Button>
)}
</Box>
)}
<Box
sx={{
maxWidth: "1160px",
display: "flex",
gap: "20px",
justifyContent: "flex-end",
flexDirection: isTablet ? "column" : "row",
marginTop: "20px",
maxWidth: "1200px",
marginTop: "30px",
}}
>
<FormControlLabel