1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +00:00

Router optimized (#2565)

This commit is contained in:
杨顺强
2018-11-26 17:53:18 +08:00
committed by Daniel Pan
parent f6a0b30281
commit 50a04fed0c
12 changed files with 143 additions and 201 deletions

View File

@@ -0,0 +1,22 @@
import React, { Fragment } from 'react';
import GeneralToolBar from './toolbar/general-toolbar';
const MainContentWrapper = (WrapperedComponent) => {
return class extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Fragment>
<GeneralToolBar {...this.props} />
<WrapperedComponent {...this.props} />
</Fragment>
);
}
}
}
export default MainContentWrapper;