Skip to content
Snippets Groups Projects
Commit 4b6459f0 authored by lfr20's avatar lfr20
Browse files

Add color prop, in order to make it more flexible. But, if it doesnt receive...

Add color prop, in order to make it more flexible. But, if it doesnt receive any prop called color, it has a default color
parent 6ff6610f
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!40merge admin into develop,!37Merge sistema_admin into Update_Admin_System
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment