1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-20 20:19:35 +02:00

Clickable notifications with url redirect

This commit is contained in:
unknown 2021-10-05 16:31:56 +02:00
parent 1d8e36b46d
commit bf1aa9e85c
5 changed files with 48 additions and 26 deletions

View file

@ -20,19 +20,20 @@ const NotificationCenter = (props: ComponentProps): JSX.Element => {
<Notification
title={notification.title}
message={notification.message}
url={notification.url || null}
id={notification.id}
key={notification.id}
/>
)
);
})}
</div>
)
}
);
};
const mapStateToProps = (state: GlobalState) => {
return {
notifications: state.notification.notifications
}
}
notifications: state.notification.notifications,
};
};
export default connect(mapStateToProps)(NotificationCenter);
export default connect(mapStateToProps)(NotificationCenter);