From 4b6459f09165620a53a6ac1e941e77b7195213d3 Mon Sep 17 00:00:00 2001
From: Luis Felipe Risch <lfr20@inf.ufpr.br>
Date: Fri, 16 Oct 2020 12:27:42 -0300
Subject: [PATCH] Add color prop, in order to make it more flexible. But, if it
 doesnt receive any prop called color, it has a default color

---
 src/Components/SnackbarComponent.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Components/SnackbarComponent.js b/src/Components/SnackbarComponent.js
index 6074b9e9..0a359a78 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>
-- 
GitLab