adminFront/src/Components/LoggedIn/Content/Tariffs/Quiz/index.tsx

84 lines
2.2 KiB
TypeScript
Raw Normal View History

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 {
openModal: (num: number) => void
}
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-09-20 14:35:49 +00:00
onClick={ () => openModal(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-09-20 14:35:49 +00:00
onClick={ () => openModal(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;