diff --git a/src/components/Notification.tsx b/src/components/Notification.tsx
index 95e8cfdb5..416c8570e 100644
--- a/src/components/Notification.tsx
+++ b/src/components/Notification.tsx
@@ -1,5 +1,6 @@
import CloseIcon from '@mui/icons-material/Close';
import {
+ Box,
Button,
ButtonProps,
IconButton,
@@ -30,7 +31,7 @@ export default function Notification({ open, onClose, attributes }: Iprops) {
};
const handleClick = () => {
- attributes?.onClick();
+ attributes.onClick();
onClose();
};
return (
@@ -55,7 +56,9 @@ export default function Notification({ open, onClose, attributes }: Iprops) {
spacing={2}
direction="row"
alignItems={'center'}>
- {attributes?.startIcon ?? }
+
+ {attributes.startIcon ?? }
+
- {attributes?.endIcon ? (
-
+ {attributes.endIcon ? (
+
{attributes?.endIcon}
) : (
diff --git a/src/components/Upload/Uploader.tsx b/src/components/Upload/Uploader.tsx
index 8f92b8801..4e2a0b0fb 100644
--- a/src/components/Upload/Uploader.tsx
+++ b/src/components/Upload/Uploader.tsx
@@ -463,13 +463,14 @@ export default function Uploader(props: Props) {
subtext: constants.STORAGE_QUOTA_EXCEEDED,
message: constants.UPGRADE_NOW,
onClick: () => galleryContext.showPlanSelectorModal(),
- startIcon: ,
+ startIcon: ,
};
break;
default:
notification = {
variant: 'danger',
message: constants.UNKNOWN_ERROR,
+ onClick: () => null,
};
}
appContext.setNotificationAttributes(notification);
diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx
index 3f590f62f..63e1e4973 100644
--- a/src/pages/gallery/index.tsx
+++ b/src/pages/gallery/index.tsx
@@ -666,7 +666,6 @@ export default function Gallery() {
sidebarView={sidebarView}
closeSidebar={closeSidebar}
/>
-
void;
+ onClick: () => void;
endIcon?: ReactNode;
}