DrawerHeader → Header + HeaderContainer

This commit is contained in:
Thibaut Girka
2019-04-20 20:52:07 +02:00
committed by ThibG
parent 9a2f10fe8b
commit 281a82d878
4 changed files with 148 additions and 154 deletions

View File

@ -0,0 +1,21 @@
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);