Commit fd0926bd authored by Erwin Zhang's avatar Erwin Zhang Committed by 陈帅

add component's name

parent 2835ffae
...@@ -5,7 +5,7 @@ import GridContent from './GridContent'; ...@@ -5,7 +5,7 @@ import GridContent from './GridContent';
import styles from './PageHeaderLayout.less'; import styles from './PageHeaderLayout.less';
import MenuContext from './MeunContext'; import MenuContext from './MeunContext';
export default ({ children, wrapperClassName, top, ...restProps }) => ( const PageHeaderLayout = ({ children, wrapperClassName, top, ...restProps }) => (
<div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}> <div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}>
{top} {top}
<MenuContext.Consumer> <MenuContext.Consumer>
...@@ -20,3 +20,5 @@ export default ({ children, wrapperClassName, top, ...restProps }) => ( ...@@ -20,3 +20,5 @@ export default ({ children, wrapperClassName, top, ...restProps }) => (
) : null} ) : null}
</div> </div>
); );
export default PageHeaderLayout;
...@@ -17,7 +17,7 @@ const actions = ( ...@@ -17,7 +17,7 @@ const actions = (
</div> </div>
); );
export default ({ location }) => ( const RegisterResult = ({ location }) => (
<Result <Result
className={styles.registerResult} className={styles.registerResult}
type="success" type="success"
...@@ -31,3 +31,5 @@ export default ({ location }) => ( ...@@ -31,3 +31,5 @@ export default ({ location }) => (
style={{ marginTop: 56 }} style={{ marginTop: 56 }}
/> />
); );
export default RegisterResult;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment