Browse Source
* update footer link hover color * Use linkElement * remove module-resolverpull/27/head
committed by
niko
13 changed files with 75 additions and 58 deletions
@ -1,10 +1,11 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
|
import { Link } from 'dva/router'; |
||||
import PageHeader from '../components/PageHeader'; |
import PageHeader from '../components/PageHeader'; |
||||
|
|
||||
export default ({ children, wrapperClassName, top, ...restProps }) => ( |
export default ({ children, wrapperClassName, top, ...restProps }) => ( |
||||
<div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}> |
<div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}> |
||||
{top} |
{top} |
||||
<PageHeader {...restProps} /> |
<PageHeader {...restProps} linkElement={Link} /> |
||||
{children ? <div style={{ margin: '24px 24px 0' }}>{children}</div> : null} |
{children ? <div style={{ margin: '24px 24px 0' }}>{children}</div> : null} |
||||
</div> |
</div> |
||||
); |
); |
||||
|
|||||
@ -1,4 +1,7 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
|
import { Link } from 'dva/router'; |
||||
import Exception from '../../components/Exception'; |
import Exception from '../../components/Exception'; |
||||
|
|
||||
export default () => <Exception type="403" style={{ minHeight: 500, height: '80%' }} />; |
export default () => ( |
||||
|
<Exception type="403" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> |
||||
|
); |
||||
|
|||||
@ -1,4 +1,7 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
|
import { Link } from 'dva/router'; |
||||
import Exception from '../../components/Exception'; |
import Exception from '../../components/Exception'; |
||||
|
|
||||
export default () => <Exception type="404" style={{ minHeight: 500, height: '80%' }} />; |
export default () => ( |
||||
|
<Exception type="404" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> |
||||
|
); |
||||
|
|||||
@ -1,4 +1,7 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
|
import { Link } from 'dva/router'; |
||||
import Exception from '../../components/Exception'; |
import Exception from '../../components/Exception'; |
||||
|
|
||||
export default () => <Exception type="500" style={{ minHeight: 500, height: '80%' }} />; |
export default () => ( |
||||
|
<Exception type="500" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> |
||||
|
); |
||||
|
|||||
Loading…
Reference in new issue