React = require 'react' Page = require './page' {RetinaImg, TimeoutTransitionGroup} = require 'nylas-component-kit' OnboardingActions = require './onboarding-actions' class WelcomePage extends Page @displayName: "WelcomePage" constructor: (@props) -> @state = step: 0 render: => buttons = [] if @state.step > 0 buttons.push buttons.push
{@_renderClose("close")} {@_renderStep()}
{buttons}
_renderStep: => if @state.step is 0
else if @state.step is 1
else if @state.step is 2
_onBack: => @setState(step: @state.step - 1) _onContinue: => if @state.step < 2 @setState(step: @state.step + 1) else OnboardingActions.moveToPage("account-choose") module.exports = WelcomePage