2017-08-27 06:33:29 +08:00
|
|
|
import React, {Component} from 'react';
|
|
|
|
import PropTypes from 'prop-types'
|
2017-01-24 23:34:07 +08:00
|
|
|
import {RetinaImg} from 'nylas-component-kit';
|
|
|
|
import AccountTypes from './account-types'
|
|
|
|
|
|
|
|
|
|
|
|
class AccountOnboardingSuccess extends Component { // eslint-disable-line
|
|
|
|
static displayName = 'AccountOnboardingSuccess'
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
accountInfo: PropTypes.object,
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const {accountInfo} = this.props
|
|
|
|
const accountType = AccountTypes.find(a => a.type === accountInfo.type);
|
|
|
|
return (
|
|
|
|
<div className={`page account-setup AccountOnboardingSuccess`}>
|
|
|
|
<div className="logo-container">
|
|
|
|
<RetinaImg
|
|
|
|
style={{backgroundColor: accountType.color, borderRadius: 44}}
|
|
|
|
name={accountType.headerIcon}
|
|
|
|
mode={RetinaImg.Mode.ContentPreserve}
|
|
|
|
className="logo"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Successfully connected to {accountType.displayName}!</h2>
|
2017-09-06 04:37:40 +08:00
|
|
|
<h3>Adding your account to Mailspring…</h3>
|
2017-01-24 23:34:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AccountOnboardingSuccess
|