From 2677184c581a49666ec065a564ed6ab5d58d1f46 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Thu, 4 Mar 2021 15:01:18 -0800 Subject: [PATCH] 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. --- ui/src/snackbars.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/snackbars.tsx b/ui/src/snackbars.tsx index 33ec705..5053325 100644 --- a/ui/src/snackbars.tsx +++ b/ui/src/snackbars.tsx @@ -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={