mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
60da9909d3
* site: should generate html file for both of en and cn, ref: #3934 * site: remove loading animation * site: fix header menu highlight * site: improve detail * deps: update
23 lines
569 B
JavaScript
23 lines
569 B
JavaScript
import React from 'react';
|
|
import { Link } from 'react-router';
|
|
import * as utils from './utils';
|
|
|
|
export default function NotFound({ location }) {
|
|
return (
|
|
<div id="page-404">
|
|
<section>
|
|
<h1>404</h1>
|
|
<p>
|
|
你要找的页面不存在
|
|
<Link to={utils.getLocalizedPathname('/', utils.isZhCN(location.pathname))}>返回首页</Link>
|
|
</p>
|
|
</section>
|
|
<style
|
|
dangerouslySetInnerHTML={{
|
|
__html: '#react-content { height: 100%; background-color: #fff }',
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|