glitch-soc/app/javascript/flavours/glitch/features/ui/components/notifications_counter_icon.js
Eugen Rochko ff88387a4a [Glitch] Improvements to the single column layout
Port 0e445ebb13 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00

10 lines
333 B
JavaScript

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