glitch-soc/app/javascript/flavours/glitch/features/ui/components/notifications_counter_icon.js
Eugen Rochko 4ae4b03974 [Glitch] Change how missing desktop notifications permission is displayed
Port a69ca29473 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-10-21 21:49:46 +02:00

10 lines
342 B
JavaScript

import { connect } from 'react-redux';
import IconWithBadge from 'flavours/glitch/components/icon_with_badge';
const mapStateToProps = state => ({
count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
id: 'bell',
});
export default connect(mapStateToProps)(IconWithBadge);