Remove unnecessary message prop from Snackbar

When the Snackbar has children, the message prop is ignored, so we can
remove it from here to simplify the component.

cf. https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Snackbar/Snackbar.js#L247

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
Mike Lewis
2021-05-10 09:13:04 +01:00
parent 12518e2420
commit 0494d0a946
@@ -46,11 +46,7 @@ export const AlertDisplay = () => {
};
return (
<Snackbar
open
message={firstMessage.message.toString()}
anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
>
<Snackbar open anchorOrigin={{ vertical: 'top', horizontal: 'center' }}>
<Alert
action={
<IconButton