From fd0926bdf6979269aea56e9bff13bd96aafe7912 Mon Sep 17 00:00:00 2001 From: Erwin Zhang Date: Mon, 7 May 2018 23:00:10 +0700 Subject: [PATCH] add component's name --- src/layouts/PageHeaderLayout.js | 4 +++- src/routes/User/RegisterResult.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layouts/PageHeaderLayout.js b/src/layouts/PageHeaderLayout.js index 5c48c16d..20438ddd 100644 --- a/src/layouts/PageHeaderLayout.js +++ b/src/layouts/PageHeaderLayout.js @@ -5,7 +5,7 @@ import GridContent from './GridContent'; import styles from './PageHeaderLayout.less'; import MenuContext from './MeunContext'; -export default ({ children, wrapperClassName, top, ...restProps }) => ( +const PageHeaderLayout = ({ children, wrapperClassName, top, ...restProps }) => (
{top} @@ -20,3 +20,5 @@ export default ({ children, wrapperClassName, top, ...restProps }) => ( ) : null}
); + +export default PageHeaderLayout; diff --git a/src/routes/User/RegisterResult.js b/src/routes/User/RegisterResult.js index 9c9bbe5f..5eb6cb72 100644 --- a/src/routes/User/RegisterResult.js +++ b/src/routes/User/RegisterResult.js @@ -17,7 +17,7 @@ const actions = ( ); -export default ({ location }) => ( +const RegisterResult = ({ location }) => ( ( style={{ marginTop: 56 }} /> ); + +export default RegisterResult; -- GitLab