Define an array of maintenance item and Map maintenance items array to ListItem components with icons
This commit is contained in:
1 parent
c8cdcd88a6
commit
5cd7e362e9
1 file changed
+36
-2
@@ -1,15 +1,49 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Card, CardContent, Box, Typography, Button } from "@mui/material";
|
import "./index.css";
|
||||||
|
import {
|
||||||
|
Card,
|
||||||
|
CardContent,
|
||||||
|
Box,
|
||||||
|
Typography,
|
||||||
|
Button,
|
||||||
|
List,
|
||||||
|
ListItem,
|
||||||
|
ListItemIcon,
|
||||||
|
ListItemText,
|
||||||
|
} from "@mui/material";
|
||||||
|
import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
||||||
|
|
||||||
const Incidents = () => {
|
const Incidents = () => {
|
||||||
|
const maintenanceItems = [
|
||||||
|
"Mark your maintenance periods",
|
||||||
|
"Eliminate any misunderstandings",
|
||||||
|
"Stop sending alerts in maintenance windows",
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Box />
|
<Box />
|
||||||
<Typography>Create a maintenance window to</Typography>
|
<Typography>Create a maintenance window to</Typography>
|
||||||
|
<List>
|
||||||
|
{maintenanceItems.map((item, index) => {
|
||||||
|
<ListItem key={index}>
|
||||||
|
<ListItemIcon>
|
||||||
|
<CheckCircleOutlineIcon color="primary" />
|
||||||
|
</ListItemIcon>
|
||||||
|
<ListItemText primary={item} />
|
||||||
|
</ListItem>;
|
||||||
|
})}
|
||||||
|
</List>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<Box>
|
<Box>
|
||||||
<Button>Let's create your maintenance window</Button>
|
<Button
|
||||||
|
variant="contained"
|
||||||
|
color="primary"
|
||||||
|
sx={{ textTransform: "none" }}
|
||||||
|
>
|
||||||
|
Let's create your maintenance window
|
||||||
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user