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:
22
frontend/src/components/main-content-wrapper.js
Normal file
22
frontend/src/components/main-content-wrapper.js
Normal 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;
|
Reference in New Issue
Block a user