mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 07:16:02 +00:00
31 lines
742 B
JavaScript
31 lines
742 B
JavaScript
/**
|
|
*
|
|
* LeftMenuLinkContainer
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import LeftMenuLink from 'components/LeftMenuLink';
|
|
import styles from './styles.scss';
|
|
|
|
class LeftMenuLinkContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
render() {
|
|
const links = this.props.plugins.map(p => <LeftMenuLink icon="ion-person" label={p.name} destination={`/plugins/${p.id}`}></LeftMenuLink>);
|
|
|
|
return (
|
|
<div className={styles.leftMenuLinkContainer}>
|
|
<p className={styles.title}>Plugins</p>
|
|
<ul className={styles.list}>
|
|
{links}
|
|
</ul>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
LeftMenuLinkContainer.propTypes = {
|
|
plugins: React.PropTypes.object,
|
|
};
|
|
|
|
export default LeftMenuLinkContainer;
|