"FormStepForm/src/model.ts" did not exist on "5d25742bc957a3ed4859d64acb9bb24a151cab87"
index.tsx 1.89 KB
Newer Older
陈帅's avatar
陈帅 committed
1
import React, { Fragment } from 'react';
陈帅's avatar
陈帅 committed
2
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
3
import { Button, Icon, Card } from 'antd';
陈帅's avatar
陈帅 committed
4
import { GridContent } from '@ant-design/pro-layout';
陈帅's avatar
陈帅 committed
5
import Result from './Result';
陈帅's avatar
陈帅 committed
6
import styles from './index.less';
7 8

const extra = (
陈帅's avatar
陈帅 committed
9
  <Fragment>
陈帅's avatar
陈帅 committed
10
    <div className={styles.title}>
张秀玲's avatar
张秀玲 committed
11
      <FormattedMessage
12
        id="BLOCK_NAME.error.hint-title"
张秀玲's avatar
张秀玲 committed
13 14
        defaultMessage="The content you submitted has the following error:"
      />
15
    </div>
ddcat1115's avatar
ddcat1115 committed
16
    <div style={{ marginBottom: 16 }}>
陈帅's avatar
陈帅 committed
17
      <Icon style={{ marginRight: 8 }} className={styles.error_icon} type="close-circle-o" />
张秀玲's avatar
张秀玲 committed
18
      <FormattedMessage
19
        id="BLOCK_NAME.error.hint-text1"
张秀玲's avatar
张秀玲 committed
20 21
        defaultMessage="Your account has been frozen"
      />
jim's avatar
jim committed
22
      <a style={{ marginLeft: 16 }}>
23
        <FormattedMessage id="BLOCK_NAME.error.hint-btn1" defaultMessage="Thaw immediately" />
张秀玲's avatar
张秀玲 committed
24
        <Icon type="right" />
jim's avatar
jim committed
25
      </a>
26 27
    </div>
    <div>
陈帅's avatar
陈帅 committed
28
      <Icon style={{ marginRight: 8 }} className={styles.error_icon} type="close-circle-o" />
张秀玲's avatar
张秀玲 committed
29
      <FormattedMessage
30
        id="BLOCK_NAME.error.hint-text2"
张秀玲's avatar
张秀玲 committed
31 32
        defaultMessage="Your account is not yet eligible to apply"
      />
jim's avatar
jim committed
33
      <a style={{ marginLeft: 16 }}>
34
        <FormattedMessage id="BLOCK_NAME.error.hint-btn2" defaultMessage="Upgrade immediately" />
张秀玲's avatar
张秀玲 committed
35
        <Icon type="right" />
jim's avatar
jim committed
36
      </a>
37
    </div>
陈帅's avatar
陈帅 committed
38
  </Fragment>
39 40
);

张秀玲's avatar
张秀玲 committed
41 42
const actions = (
  <Button type="primary">
43
    <FormattedMessage id="BLOCK_NAME.error.btn-text" defaultMessage="Return to modify" />
张秀玲's avatar
张秀玲 committed
44 45
  </Button>
);
46 47

export default () => (
陈帅's avatar
陈帅 committed
48 49 50 51 52 53 54 55 56 57 58 59
  <GridContent>
    <Card bordered={false}>
      <Result
        type="error"
        title={formatMessage({ id: 'BLOCK_NAME.error.title' })}
        description={formatMessage({ id: 'BLOCK_NAME.error.description' })}
        extra={extra}
        actions={actions}
        style={{ marginTop: 48, marginBottom: 16 }}
      />
    </Card>
  </GridContent>
60
);