2016-04-29 03:02:51 +08:00
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
|
|
|
|
import App from './App.jsx';
|
|
|
|
|
2016-05-04 22:48:53 +08:00
|
|
|
import NavBarContainer from '../nav-bar/NavBarContainer.jsx';
|
|
|
|
import ActionsBarContainer from '../actions-bar/ActionsBarContainer.jsx';
|
2016-05-03 06:42:54 +08:00
|
|
|
import MediaContainer from '../media/MediaContainer.jsx';
|
2016-04-29 03:02:51 +08:00
|
|
|
|
|
|
|
const defaultProps = {
|
2016-05-04 22:48:53 +08:00
|
|
|
navbar: <NavBarContainer/>,
|
|
|
|
actionsbar: <ActionsBarContainer/>,
|
2016-05-03 06:42:54 +08:00
|
|
|
media: <MediaContainer/>,
|
2016-04-29 03:02:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class AppContainer extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<App {...this.props}>
|
|
|
|
{this.props.children}
|
|
|
|
</App>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
AppContainer.defaultProps = defaultProps;
|
|
|
|
|
|
|
|
export default createContainer(() => {
|
|
|
|
return {};
|
|
|
|
}, AppContainer);
|