diff --git a/src/blocks/notification/Notification.tsx b/src/blocks/notification/Notification.tsx index f49f54d213..9750a8f66a 100644 --- a/src/blocks/notification/Notification.tsx +++ b/src/blocks/notification/Notification.tsx @@ -24,6 +24,12 @@ const NotificationContainer = styled.div` width: -webkit-fill-available; } `; +const StyledToaster = styled(Toaster)` + width: 397px; + @media${deviceMediaQ.mobileL} { + width: 100%; + } +`; const TextContainer = styled.div` display: flex; flex-direction: column; @@ -98,7 +104,7 @@ const NotificationItem: FC = ({ overlay, onClose, title, desc const Notification = () => { return ( - diff --git a/src/common/hooks/useInAppNotifications.tsx b/src/common/hooks/useInAppNotifications.tsx index 57372199f0..256f29710f 100644 --- a/src/common/hooks/useInAppNotifications.tsx +++ b/src/common/hooks/useInAppNotifications.tsx @@ -37,17 +37,13 @@ export const useInAppNotifications = () => { userPushSDKInstance?.stream?.uid, userPushSDKInstance?.stream ); - // notification.show({ - // overlay: , - // }); notification.show({ - title: 'Push Points are Live', - description: 'Complete Tasks on Push. Check-in, Earn Push Points, Unlock Rewards and Level up!', - image: , + overlay: , }); - // setTimeout(() => { - // notification.hide(); - // }, 5000); + + setTimeout(() => { + notification.hide(); + }, 5000); }); };