diff --git a/src/layouts/GridContent.js b/src/components/PageHeaderWrapper/GridContent.js similarity index 100% rename from src/layouts/GridContent.js rename to src/components/PageHeaderWrapper/GridContent.js diff --git a/src/layouts/GridContent.less b/src/components/PageHeaderWrapper/GridContent.less similarity index 100% rename from src/layouts/GridContent.less rename to src/components/PageHeaderWrapper/GridContent.less diff --git a/src/layouts/PageHeaderLayout.js b/src/components/PageHeaderWrapper/index.js similarity index 84% rename from src/layouts/PageHeaderLayout.js rename to src/components/PageHeaderWrapper/index.js index a3f51c595464d395c3dd40be4fd975ce34f31b7d..1a8335904868c1d0ec86cfccb3e6c49c38a6d14a 100644 --- a/src/layouts/PageHeaderLayout.js +++ b/src/components/PageHeaderWrapper/index.js @@ -4,10 +4,10 @@ import Link from 'umi/link'; import PageHeader from '@/components/PageHeader'; import { connect } from 'dva'; import GridContent from './GridContent'; -import styles from './PageHeaderLayout.less'; -import MenuContext from './MenuContext'; +import styles from './index.less'; +import MenuContext from '@/layouts/MenuContext'; -const PageHeaderLayout = ({ children, grid, wrapperClassName, top, ...restProps }) => ( +const PageHeaderWrapper = ({ children, grid, wrapperClassName, top, ...restProps }) => (