500.js 462 Bytes
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2
import React from 'react';

邓晓峰's avatar
邓晓峰 committed
3
import { Result } from 'antd';
邓晓峰's avatar
邓晓峰 committed
4

邓晓峰's avatar
邓晓峰 committed
5
export default props => (
邓晓峰's avatar
邓晓峰 committed
6 7 8 9 10 11
  <Result
    status="500"
    title="500"
    style={{
      background: 'none',
    }}
邓晓峰's avatar
邓晓峰 committed
12 13 14 15 16 17 18 19 20
    subTitle={
      props.message ||
      // eslint-disable-next-line no-restricted-globals
      (history.state && history.state.message) ||
      'Sorry, the server is reporting an error.'
    }
    extra={
      null
      // <Button type="primary">Back Home</Button>
邓晓峰's avatar
邓晓峰 committed
21 22
    }
  />
邓晓峰's avatar
邓晓峰 committed
23
);