-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBugAlert.js
More file actions
38 lines (35 loc) · 1.03 KB
/
Copy pathBugAlert.js
File metadata and controls
38 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import * as React from 'react';
import {Collapse, IconButton} from '@material-ui/core';
import {Alert} from '@mui/material';
import CloseIcon from '@mui/icons-material/Close';
import {makeStyles} from "@material-ui/core";
const useStyles = makeStyles({
root: {
width: "100%"
}
})
export default function BugAlert(props) {
const classes = useStyles();
return (
<Collapse className={classes.root} in={props.alert}>
<Alert
severity='warning'
action={
<IconButton
aria-label="close"
color="inherit"
size="small"
onClick={() => {
props.setAlert(false);
}}
>
<CloseIcon fontSize="inherit" />
</IconButton>
}
sx={{ mb: 2 }}
>
Bug Report Sent!
</Alert>
</Collapse>
)
}