7 changed files with 67 additions and 54 deletions
@ -1,7 +1,7 @@ |
|||
import { Skeleton } from 'antd'; |
|||
|
|||
const Loading: React.FC = () => ( |
|||
<Skeleton style={{ margin: '24px 40px' }} active /> |
|||
<Skeleton style={{ margin: '24px 40px', height: '60vh' }} active /> |
|||
); |
|||
|
|||
export default Loading; |
|||
|
|||
@ -1,18 +1,20 @@ |
|||
import { history, useIntl } from '@umijs/max'; |
|||
import { Button, Result } from 'antd'; |
|||
import { Button, Card, Result } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
const NoFoundPage: React.FC = () => ( |
|||
<Result |
|||
status="404" |
|||
title="404" |
|||
subTitle={useIntl().formatMessage({ id: 'pages.404.subTitle' })} |
|||
extra={ |
|||
<Button type="primary" onClick={() => history.push('/')}> |
|||
{useIntl().formatMessage({ id: 'pages.404.buttonText' })} |
|||
</Button> |
|||
} |
|||
/> |
|||
<Card variant="borderless"> |
|||
<Result |
|||
status="404" |
|||
title="404" |
|||
subTitle={useIntl().formatMessage({ id: 'pages.404.subTitle' })} |
|||
extra={ |
|||
<Button type="primary" onClick={() => history.push('/')}> |
|||
{useIntl().formatMessage({ id: 'pages.404.buttonText' })} |
|||
</Button> |
|||
} |
|||
/> |
|||
</Card> |
|||
); |
|||
|
|||
export default NoFoundPage; |
|||
|
|||
@ -1,15 +1,17 @@ |
|||
import { Link } from '@umijs/max'; |
|||
import { Button, Result } from 'antd'; |
|||
import { Button, Card, Result } from 'antd'; |
|||
|
|||
export default () => ( |
|||
<Result |
|||
status="403" |
|||
title="403" |
|||
subTitle="Sorry, you are not authorized to access this page." |
|||
extra={ |
|||
<Link to="/"> |
|||
<Button type="primary">Back to home</Button> |
|||
</Link> |
|||
} |
|||
/> |
|||
<Card variant="borderless"> |
|||
<Result |
|||
status="403" |
|||
title="403" |
|||
subTitle="Sorry, you are not authorized to access this page." |
|||
extra={ |
|||
<Link to="/"> |
|||
<Button type="primary">Back to home</Button> |
|||
</Link> |
|||
} |
|||
/> |
|||
</Card> |
|||
); |
|||
|
|||
@ -1,15 +1,17 @@ |
|||
import { Link } from '@umijs/max'; |
|||
import { Button, Result } from 'antd'; |
|||
import { Button, Card, Result } from 'antd'; |
|||
|
|||
export default () => ( |
|||
<Result |
|||
status="404" |
|||
title="404" |
|||
subTitle="Sorry, the page you visited does not exist." |
|||
extra={ |
|||
<Link to="/"> |
|||
<Button type="primary">Back Home</Button> |
|||
</Link> |
|||
} |
|||
/> |
|||
<Card variant="borderless"> |
|||
<Result |
|||
status="404" |
|||
title="404" |
|||
subTitle="Sorry, the page you visited does not exist." |
|||
extra={ |
|||
<Link to="/"> |
|||
<Button type="primary">Back Home</Button> |
|||
</Link> |
|||
} |
|||
/> |
|||
</Card> |
|||
); |
|||
|
|||
@ -1,15 +1,17 @@ |
|||
import { Link } from '@umijs/max'; |
|||
import { Button, Result } from 'antd'; |
|||
import { Button, Card, Result } from 'antd'; |
|||
|
|||
export default () => ( |
|||
<Result |
|||
status="500" |
|||
title="500" |
|||
subTitle="Sorry, something went wrong." |
|||
extra={ |
|||
<Link to="/"> |
|||
<Button type="primary">Back Home</Button> |
|||
</Link> |
|||
} |
|||
/> |
|||
<Card variant="borderless"> |
|||
<Result |
|||
status="500" |
|||
title="500" |
|||
subTitle="Sorry, something went wrong." |
|||
extra={ |
|||
<Link to="/"> |
|||
<Button type="primary">Back Home</Button> |
|||
</Link> |
|||
} |
|||
/> |
|||
</Card> |
|||
); |
|||
|
|||
Loading…
Reference in new issue