Mailspring/internal_packages/onboarding/lib/connect-account-page.cjsx
Evan Morikawa e44a7e28b6 feat(onboarding): refactor onboarding flow
Summary:
Add spinner and refactor container view to be router

add `NylasStore` as a global importable. specs for APIEnv

login page fixes

add old fixes to container view

finish extracting pages

fix onboarding flow

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D1652
2015-06-17 15:58:58 -07:00

31 lines
1,020 B
CoffeeScript

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>
<button className="btn btn-larger btn-gradient" onClick={=> @_fireAuthAccount('salesforce')}>Salesforce</button>
</div>
</div>
_fireAuthAccount: (service) =>
url = EdgehillAPI.urlForConnecting(service)
OnboardingActions.moveToPage "add-account-auth", {url}
module.exports = ConnectAccountPage