From 84f8ef2ad4d4dfe8f36bc97dbc03fe9ebf6b0f64 Mon Sep 17 00:00:00 2001 From: Jared Kobos Date: Fri, 3 Jan 2020 13:45:24 -0500 Subject: [PATCH] Change uuid prop to key to work with Notistack 0.9.7 --- packages/manager/src/components/SnackBar/CloseSnackbar.tsx | 4 ++-- packages/manager/src/components/SnackBar/SnackBar.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/manager/src/components/SnackBar/CloseSnackbar.tsx b/packages/manager/src/components/SnackBar/CloseSnackbar.tsx index 0a0b4a47c60..c9e7023db68 100644 --- a/packages/manager/src/components/SnackBar/CloseSnackbar.tsx +++ b/packages/manager/src/components/SnackBar/CloseSnackbar.tsx @@ -12,7 +12,7 @@ import IconButton from 'src/components/IconButton'; type ClassNames = 'icon'; interface Props { - uuid: string; + key: string; text: string; } @@ -31,7 +31,7 @@ const CloseSnackbar: React.FC = props => { const { closeSnackbar } = useSnackbar(); const handleClose = () => { - closeSnackbar(props.uuid); + closeSnackbar(props.key); }; return ( diff --git a/packages/manager/src/components/SnackBar/SnackBar.tsx b/packages/manager/src/components/SnackBar/SnackBar.tsx index 1989a306423..51e51bab465 100644 --- a/packages/manager/src/components/SnackBar/SnackBar.tsx +++ b/packages/manager/src/components/SnackBar/SnackBar.tsx @@ -48,7 +48,7 @@ class SnackBar extends React.Component { variantWarning: classes.warning, variantInfo: classes.info }} - action={} + action={} > {children}