2016-05-06 05:14:39 +08:00
|
|
|
import React from 'react';
|
|
|
|
import Modal from 'react-modal';
|
2016-05-20 21:37:19 +08:00
|
|
|
import Icon from '/imports/ui/components/icon/component';
|
|
|
|
import Button from '/imports/ui/components/button/component';
|
2016-06-07 03:52:03 +08:00
|
|
|
import styles from './styles';
|
2016-05-06 05:14:39 +08:00
|
|
|
|
|
|
|
export default class BaseMenu extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
getContent() {
|
|
|
|
return (<div>parent content</div>);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2016-07-12 01:01:09 +08:00
|
|
|
<div style={{ height: '100%' }} role='presentation'>
|
2016-06-07 03:52:03 +08:00
|
|
|
<h3 className={styles.submenuTitle}>{this.props.title}</h3>
|
2016-07-12 01:01:09 +08:00
|
|
|
<div className={styles.submenuContent} role='presentation'>
|
2016-05-06 05:14:39 +08:00
|
|
|
{this.getContent()}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|