Mailspring/app/internal_packages/onboarding/lib/page-account-onboarding-success.jsx

38 lines
1.1 KiB
React
Raw Normal View History

2017-09-27 02:33:08 +08:00
import React, { Component } from 'react';
import PropTypes from 'prop-types';
2017-09-27 02:46:00 +08:00
import { RetinaImg } from 'mailspring-component-kit';
2017-09-27 02:33:08 +08:00
import AccountProviders from './account-providers';
2017-09-27 02:33:08 +08:00
class AccountOnboardingSuccess extends Component {
// eslint-disable-line
static displayName = 'AccountOnboardingSuccess';
static propTypes = {
account: PropTypes.object,
2017-09-27 02:33:08 +08:00
};
render() {
2017-09-27 02:33:08 +08:00
const { account } = this.props;
const providerConfig = AccountProviders.find(({ provider }) => provider === account.provider);
return (
<div className={`page account-setup AccountOnboardingSuccess`}>
<div className="logo-container">
<RetinaImg
2017-09-27 02:33:08 +08:00
style={{ backgroundColor: providerConfig.color, borderRadius: 44 }}
name={providerConfig.headerIcon}
mode={RetinaImg.Mode.ContentPreserve}
className="logo"
/>
</div>
<div>
<h2>Successfully connected to {providerConfig.displayName}!</h2>
<h3>Adding your account to Mailspring</h3>
</div>
</div>
2017-09-27 02:33:08 +08:00
);
}
}
2017-09-27 02:33:08 +08:00
export default AccountOnboardingSuccess;