mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-02-04 10:26:01 -05:00
unbreak snackbars
I broke these with the material-ui 5 upgrade. https://next.material-ui.com/guides/migration-v4/ says that Snackbar's onExited was removed in favor of TransitionProps.
This commit is contained in:
parent
fbaf7517aa
commit
2677184c58
@ -40,7 +40,7 @@ export interface MySnackbarProps
|
||||
| "anchorOrigin"
|
||||
| "open"
|
||||
| "handleClosed"
|
||||
| "handleExited"
|
||||
| "TransitionProps"
|
||||
| "actions"
|
||||
> {
|
||||
key?: React.Key;
|
||||
@ -164,7 +164,9 @@ export class SnackbarProvider
|
||||
onClose={(event, reason) =>
|
||||
this.handleCloseSnackbar(first.key, event, reason)
|
||||
}
|
||||
onExited={() => this.handleSnackbarExited(first.key)}
|
||||
TransitionProps={{
|
||||
onExited: () => this.handleSnackbarExited(first.key),
|
||||
}}
|
||||
action={
|
||||
<IconButton
|
||||
size="small"
|
||||
|
Loading…
x
Reference in New Issue
Block a user