mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 16:11:37 +01:00
Fix notification badge
This commit is contained in:
parent
0ccc06b87f
commit
0f41be5581
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import IconWithBadge from 'flavours/glitch/components/icon';
|
import IconWithBadge from 'flavours/glitch/components/icon_with_badge';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
|
count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
|
||||||
icon: 'bell',
|
id: 'bell',
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps)(IconWithBadge);
|
export default connect(mapStateToProps)(IconWithBadge);
|
||||||
|
|
Loading…
Reference in a new issue