From 55d3fc3f97ff98f7b97379cb92a885460f554544 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 21 May 2020 01:54:41 +0300 Subject: [PATCH] info alert backgroundColor change --- src/features/snackbar/components/ToastNotifier.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/features/snackbar/components/ToastNotifier.js b/src/features/snackbar/components/ToastNotifier.js index af5a0e1..e13ef0d 100644 --- a/src/features/snackbar/components/ToastNotifier.js +++ b/src/features/snackbar/components/ToastNotifier.js @@ -16,6 +16,9 @@ const useStyles = makeStyles((theme) => ({ "& > * + *": { marginTop: theme.spacing(2) } + }, + info: { + backgroundColor: theme.palette.primary.main } })); @@ -27,7 +30,7 @@ const ToastNotifier = ({ snackbar }) => { if (snackbar.type) setOpen(true); }, [snackbar]); - const handleClose = (event, reason) => { + const handleClose = (_, reason) => { if (reason === "clickaway") { return; } @@ -40,7 +43,11 @@ const ToastNotifier = ({ snackbar }) => { <> {snackbar.type === snackbarType.info && ( - + {snackbar.message} )}