2017-07-06 15:34:21 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* PluginLeftMenu
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import React from 'react';
|
2017-07-12 18:12:07 +02:00
|
|
|
import { map } from 'lodash';
|
2017-07-12 17:54:20 +02:00
|
|
|
import PluginLeftMenuSection from 'components/PluginLeftMenuSection';
|
2017-07-06 15:34:21 +02:00
|
|
|
import styles from './styles.scss';
|
|
|
|
|
|
2017-07-12 16:18:58 +02:00
|
|
|
class PluginLeftMenu extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div className={`${styles.pluginLeftMenu} col-md-3`}>
|
2017-07-12 18:12:07 +02:00
|
|
|
{map(this.props.sections, (section, index) => (
|
2017-07-17 17:44:19 +02:00
|
|
|
<PluginLeftMenuSection key={index} section={section} environments={this.props.environments} />
|
2017-07-12 17:54:20 +02:00
|
|
|
))}
|
2017-07-12 16:18:58 +02:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2017-07-06 15:34:21 +02:00
|
|
|
}
|
|
|
|
|
|
2017-07-13 13:55:03 +02:00
|
|
|
PluginLeftMenu.propTypes = {
|
2017-07-17 17:44:19 +02:00
|
|
|
environments: React.PropTypes.array,
|
2017-07-13 13:55:03 +02:00
|
|
|
sections: React.PropTypes.array.isRequired,
|
|
|
|
|
};
|
|
|
|
|
|
2017-07-06 15:34:21 +02:00
|
|
|
export default PluginLeftMenu;
|