diff --git a/src/components/Notification.tsx b/src/components/Notification.tsx index f7afbeb7e..95e8cfdb5 100644 --- a/src/components/Notification.tsx +++ b/src/components/Notification.tsx @@ -30,7 +30,7 @@ export default function Notification({ open, onClose, attributes }: Iprops) { }; const handleClick = () => { - attributes.action?.callback(); + attributes?.onClick(); onClose(); }; return ( @@ -55,27 +55,34 @@ export default function Notification({ open, onClose, attributes }: Iprops) { spacing={2} direction="row" alignItems={'center'}> - {attributes?.icon ?? } + {attributes?.startIcon ?? } - - {attributes.message}{' '} - - {attributes?.action && ( - - {attributes?.action.text} - - )} + {attributes.subtext && ( + + {attributes.subtext} + + )} + {attributes.message && ( + + {attributes.message} + + )} + - - - + {attributes?.endIcon ? ( + + {attributes?.endIcon} + + ) : ( + + + + )}