43 lines
854 B
JavaScript
Raw Normal View History

2016-08-19 13:57:50 +02:00
/*
*
* LeftMenu
*
*/
import React from 'react';
import PropTypes from 'prop-types';
2016-08-19 13:57:50 +02:00
import { connect } from 'react-redux';
2016-08-24 15:09:42 +02:00
import LeftMenuHeader from 'components/LeftMenuHeader';
import LeftMenuLinkContainer from 'components/LeftMenuLinkContainer';
2016-08-26 15:32:44 +02:00
import LeftMenuFooter from 'components/LeftMenuFooter';
2016-08-26 13:28:12 +02:00
import styles from './styles.scss';
2016-08-19 13:57:50 +02:00
function LeftMenu(props) {
return (
<div className={styles.leftMenu}>
<LeftMenuHeader />
<LeftMenuLinkContainer {...props} />
<LeftMenuFooter plugins={props.plugins} version={props.version} />
</div>
);
2016-08-19 13:57:50 +02:00
}
2018-04-12 23:45:17 +02:00
LeftMenu.defaultProps = {
2018-04-13 13:50:05 +02:00
version: '3',
2018-04-12 23:45:17 +02:00
};
2016-08-19 13:57:50 +02:00
LeftMenu.propTypes = {
plugins: PropTypes.object.isRequired,
2018-04-12 23:45:17 +02:00
version: PropTypes.string,
2016-08-19 13:57:50 +02:00
};
function mapDispatchToProps(dispatch) {
return {
dispatch,
};
}
export default connect(mapDispatchToProps)(LeftMenu);