2022-09-20 10:07:27 +00:00
|
|
|
|
import * as React from "react";
|
|
|
|
|
import { Box, Typography, Button } from "@mui/material";
|
2022-09-20 14:35:49 +00:00
|
|
|
|
import theme from "../../../../../theme";
|
2022-09-20 10:07:27 +00:00
|
|
|
|
|
|
|
|
|
|
2022-09-20 14:35:49 +00:00
|
|
|
|
export interface MWProps {
|
2022-10-06 13:47:32 +00:00
|
|
|
|
openModal: (type:number, num: number) => void
|
2022-09-20 14:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const Quiz: React.FC<MWProps> = ({ openModal }) => {
|
2022-09-20 10:07:27 +00:00
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Typography
|
|
|
|
|
variant="subtitle1"
|
|
|
|
|
sx={{
|
|
|
|
|
width: "90%",
|
|
|
|
|
height: "60px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
Опросник
|
|
|
|
|
</Typography>
|
|
|
|
|
|
|
|
|
|
<Box sx={{
|
|
|
|
|
marginTop: "35px",
|
|
|
|
|
display: "grid",
|
|
|
|
|
gridTemplateColumns: "repeat(2, 1fr)",
|
|
|
|
|
gridGap: "20px",
|
|
|
|
|
marginBottom: "120px",
|
|
|
|
|
}}>
|
|
|
|
|
<Button
|
|
|
|
|
variant = "contained"
|
2022-10-06 13:47:32 +00:00
|
|
|
|
onClick={ () => openModal(2, 1) }
|
2022-09-20 10:07:27 +00:00
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.menu.main,
|
|
|
|
|
width: "320px",
|
|
|
|
|
height: "52px",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
fontSize: "17px",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
backgroundColor: theme.palette.grayMedium.main
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
Создать тариф на время
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
variant = "contained"
|
2022-10-06 13:47:32 +00:00
|
|
|
|
onClick={ () => openModal(2, 0) }
|
2022-09-20 10:07:27 +00:00
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.menu.main,
|
|
|
|
|
width: "320px",
|
|
|
|
|
height: "52px",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
fontSize: "17px",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
backgroundColor: theme.palette.grayMedium.main
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
Создать тариф на объем
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
variant = "contained"
|
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.menu.main,
|
|
|
|
|
width: "320px",
|
|
|
|
|
height: "52px",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
fontSize: "17px",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
backgroundColor: theme.palette.grayMedium.main
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
Изменить тариф
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default Quiz;
|