2016-08-19 13:57:50 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* LeftMenu
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2017-09-26 16:36:28 +02:00
|
|
|
import React from 'react';
|
2017-09-20 11:12:04 +02:00
|
|
|
import PropTypes from 'prop-types';
|
2016-08-19 13:57:50 +02:00
|
|
|
import { connect } from 'react-redux';
|
2017-08-18 14:17:15 +02:00
|
|
|
|
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';
|
2017-08-18 14:17:15 +02:00
|
|
|
|
2016-08-26 13:28:12 +02:00
|
|
|
import styles from './styles.scss';
|
2016-08-19 13:57:50 +02:00
|
|
|
|
2018-06-28 12:49:26 +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 = {
|
2017-09-20 11:12:04 +02:00
|
|
|
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);
|