mirror of
https://github.com/strapi/strapi.git
synced 2025-11-06 21:29:24 +00:00
30 lines
731 B
JavaScript
30 lines
731 B
JavaScript
/**
|
|
*
|
|
* PluginLeftMenu
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { map } from 'lodash';
|
|
import PluginLeftMenuSection from 'components/PluginLeftMenuSection';
|
|
import styles from './styles.scss';
|
|
|
|
class PluginLeftMenu extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
render() {
|
|
return (
|
|
<div className={`${styles.pluginLeftMenu} col-md-3`}>
|
|
{map(this.props.sections, (section, index) => (
|
|
<PluginLeftMenuSection key={index} section={section} environments={this.props.environments} />
|
|
))}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
PluginLeftMenu.propTypes = {
|
|
environments: React.PropTypes.array,
|
|
sections: React.PropTypes.array.isRequired,
|
|
};
|
|
|
|
export default PluginLeftMenu;
|