RegisterResult.js 968 Bytes
Newer Older
1 2
import React from 'react';
import { Button } from 'antd';
zinkey's avatar
zinkey committed
3
import Link from 'umi/link';
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 28
        {location.state ? location.state.account : 'AntDesign@example.com'}
        注册成功
ddcat1115's avatar
ddcat1115 committed
29 30
      </div>
    }
ddcat1115's avatar
ddcat1115 committed
31 32
    description="激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。"
    actions={actions}
ddcat1115's avatar
ddcat1115 committed
33
    style={{ marginTop: 56 }}
ddcat1115's avatar
ddcat1115 committed
34
  />
35
);
Erwin Zhang's avatar
Erwin Zhang committed
36 37

export default RegisterResult;