You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
654 B
22 lines
654 B
import { openModal } from 'flavours/glitch/actions/modal';
|
|
import { connect } from 'react-redux';
|
|
import Header from '../components/header';
|
|
|
|
const mapStateToProps = state => {
|
|
return {
|
|
columns: state.getIn(['settings', 'columns']),
|
|
unreadNotifications: state.getIn(['notifications', 'unread']),
|
|
showNotificationsBadge: state.getIn(['local_settings', 'notifications', 'tab_badge']),
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch, { intl }) => ({
|
|
onOpenSettings (e) {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
dispatch(openModal('SETTINGS', {}));
|
|
},
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Header);
|