|
|
@ -34,6 +34,7 @@ const mapStateToProps = state => ({ |
|
|
|
searchHidden: state.getIn(['search', 'hidden']), |
|
|
|
searchHidden: state.getIn(['search', 'hidden']), |
|
|
|
searchValue: state.getIn(['search', 'value']), |
|
|
|
searchValue: state.getIn(['search', 'value']), |
|
|
|
submitted: state.getIn(['search', 'submitted']), |
|
|
|
submitted: state.getIn(['search', 'submitted']), |
|
|
|
|
|
|
|
unreadNotifications: state.getIn(['notifications', 'unread']), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Dispatch mapping.
|
|
|
|
// Dispatch mapping.
|
|
|
@ -87,6 +88,7 @@ class Drawer extends React.Component { |
|
|
|
searchValue, |
|
|
|
searchValue, |
|
|
|
submitted, |
|
|
|
submitted, |
|
|
|
isSearchPage, |
|
|
|
isSearchPage, |
|
|
|
|
|
|
|
unreadNotifications, |
|
|
|
} = this.props; |
|
|
|
} = this.props; |
|
|
|
const computedClass = classNames('drawer', `mbstobon-${elefriend}`); |
|
|
|
const computedClass = classNames('drawer', `mbstobon-${elefriend}`); |
|
|
|
|
|
|
|
|
|
|
@ -96,6 +98,7 @@ class Drawer extends React.Component { |
|
|
|
{multiColumn ? ( |
|
|
|
{multiColumn ? ( |
|
|
|
<DrawerHeader |
|
|
|
<DrawerHeader |
|
|
|
columns={columns} |
|
|
|
columns={columns} |
|
|
|
|
|
|
|
unreadNotifications={unreadNotifications} |
|
|
|
intl={intl} |
|
|
|
intl={intl} |
|
|
|
onSettingsClick={onOpenSettings} |
|
|
|
onSettingsClick={onOpenSettings} |
|
|
|
/> |
|
|
|
/> |
|
|
@ -139,6 +142,7 @@ Drawer.propTypes = { |
|
|
|
searchHidden: PropTypes.bool, |
|
|
|
searchHidden: PropTypes.bool, |
|
|
|
searchValue: PropTypes.string, |
|
|
|
searchValue: PropTypes.string, |
|
|
|
submitted: PropTypes.bool, |
|
|
|
submitted: PropTypes.bool, |
|
|
|
|
|
|
|
unreadNotifications: PropTypes.number, |
|
|
|
|
|
|
|
|
|
|
|
// Dispatch props.
|
|
|
|
// Dispatch props.
|
|
|
|
onChange: PropTypes.func, |
|
|
|
onChange: PropTypes.func, |
|
|
|