RegisterResult.js 966 Bytes
Newer Older
1 2 3
import React from 'react';
import { Button } from 'antd';
import { Link } from 'dva/router';
4
import Result from '@/components/Result';
ddcat1115's avatar
ddcat1115 committed
5 6
import styles from './RegisterResult.less';

7
const actions = (
ddcat1115's avatar
ddcat1115 committed
8
  <div className={styles.actions}>
jim's avatar
jim committed
9 10 11 12 13 14 15 16
    <a href="">
      <Button size="large" type="primary">
        查看邮箱
      </Button>
    </a>
    <Link to="/">
      <Button size="large">返回首页</Button>
    </Link>
17 18 19
  </div>
);

Erwin Zhang's avatar
Erwin Zhang committed
20
const RegisterResult = ({ location }) => (
ddcat1115's avatar
ddcat1115 committed
21
  <Result
ddcat1115's avatar
ddcat1115 committed
22
    className={styles.registerResult}
ddcat1115's avatar
ddcat1115 committed
23
    type="success"
ddcat1115's avatar
ddcat1115 committed
24 25
    title={
      <div className={styles.title}>
陈帅's avatar
陈帅 committed
26 27
        你的账户
        {location.state ? location.state.account : 'AntDesign@example.com'} 注册成功
ddcat1115's avatar
ddcat1115 committed
28 29
      </div>
    }
ddcat1115's avatar
ddcat1115 committed
30 31
    description="激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。"
    actions={actions}
ddcat1115's avatar
ddcat1115 committed
32
    style={{ marginTop: 56 }}
ddcat1115's avatar
ddcat1115 committed
33
  />
34
);
Erwin Zhang's avatar
Erwin Zhang committed
35 36

export default RegisterResult;