diff --git a/packages/ra-ui-materialui/src/layout/Notification.js b/packages/ra-ui-materialui/src/layout/Notification.js index c43f0495b4f..f9daa9f0b01 100644 --- a/packages/ra-ui-materialui/src/layout/Notification.js +++ b/packages/ra-ui-materialui/src/layout/Notification.js @@ -71,7 +71,12 @@ class Notification extends React.Component { hideNotification, ...rest } = this.props; - + const { + warning, + confirm, + undo: undoClass, // Rename classes.undo to undoClass in this scope to avoid name conflicts + ...snackbarClasses + } = classes; return ( @@ -104,6 +109,7 @@ class Notification extends React.Component { ) : null } + classes={snackbarClasses} {...rest} /> );