diff --git a/src/Components/SnackbarComponent.js b/src/Components/SnackbarComponent.js index 6074b9e93c9b008305e5b523e660e66daacd41b0..0a359a78ba406c70f94ce37fba45b979f4608f60 100644 --- a/src/Components/SnackbarComponent.js +++ b/src/Components/SnackbarComponent.js @@ -25,7 +25,7 @@ export default function SnackbarComponent (props) { <Snackbar open={props.snackbarOpen} autoHideDuration={3000} onClose={props.handleClose} anchorOrigin = {{ vertical:'top', horizontal:'right' }} > - <Alert severity={props.severity} style={{backgroundColor:"#00acc1"}}> + <Alert severity={props.severity} style={ props.color === null ? {backgroundColor:"#00acc1"} : {backgroundColor: props.color}}> {props.text} </Alert> </Snackbar>