2015-06-18 06:58:58 +08:00
|
|
|
React = require 'react'
|
|
|
|
Page = require './page'
|
|
|
|
{RetinaImg} = require 'nylas-component-kit'
|
|
|
|
{EdgehillAPI} = require 'nylas-exports'
|
|
|
|
OnboardingActions = require './onboarding-actions'
|
|
|
|
|
|
|
|
class ConnectAccountPage extends Page
|
|
|
|
@displayName: "ConnectAccountPage"
|
|
|
|
|
|
|
|
render: =>
|
|
|
|
<div className="page">
|
|
|
|
{@_renderClose("close")}
|
|
|
|
|
|
|
|
<RetinaImg name="onboarding-logo.png" mode={RetinaImg.Mode.ContentPreserve} className="logo"/>
|
|
|
|
|
|
|
|
<h2>Connect an Account</h2>
|
|
|
|
|
|
|
|
<RetinaImg name="onboarding-divider.png" mode={RetinaImg.Mode.ContentPreserve} />
|
|
|
|
|
|
|
|
<div className="thin-container">
|
|
|
|
<div className="prompt">Link accounts from other services to supercharge your email.</div>
|
2015-08-29 03:16:32 +08:00
|
|
|
<p>No more external accounts to link. Add additional features with plugins to Nylas Mail.</p>
|
2015-06-18 06:58:58 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
_fireAuthAccount: (service) =>
|
|
|
|
url = EdgehillAPI.urlForConnecting(service)
|
|
|
|
OnboardingActions.moveToPage "add-account-auth", {url}
|
|
|
|
|
|
|
|
module.exports = ConnectAccountPage
|