mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-02-09 12:48:08 -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"
|
| "anchorOrigin"
|
||||||
| "open"
|
| "open"
|
||||||
| "handleClosed"
|
| "handleClosed"
|
||||||
| "handleExited"
|
| "TransitionProps"
|
||||||
| "actions"
|
| "actions"
|
||||||
> {
|
> {
|
||||||
key?: React.Key;
|
key?: React.Key;
|
||||||
@ -164,7 +164,9 @@ export class SnackbarProvider
|
|||||||
onClose={(event, reason) =>
|
onClose={(event, reason) =>
|
||||||
this.handleCloseSnackbar(first.key, event, reason)
|
this.handleCloseSnackbar(first.key, event, reason)
|
||||||
}
|
}
|
||||||
onExited={() => this.handleSnackbarExited(first.key)}
|
TransitionProps={{
|
||||||
|
onExited: () => this.handleSnackbarExited(first.key),
|
||||||
|
}}
|
||||||
action={
|
action={
|
||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user