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>
</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 <Box
sx={{ sx={{
maxWidth: "1160px",
display: "flex", display: "flex",
gap: "20px", gap: "20px",
justifyContent: "flex-end", justifyContent: "flex-end",
flexDirection: isTablet ? "column" : "row", flexDirection: isTablet ? "column" : "row",
marginTop: "20px", marginTop: "30px",
maxWidth: "1200px",
}} }}
> >
<FormControlLabel <FormControlLabel