React = require "react" ContainerView = require "./container-view" remote = require "remote" module.exports = item: null activate: (@state) -> # This package does nothing in other windows return unless atom.state.mode is 'onboarding' # Make sure we're the right size, and front and center w = remote.getCurrentWindow() w.setSize(650, 500) w.center() @item = document.createElement("div") @item.setAttribute("id", "onboarding-container") @item.setAttribute("class", "onboarding-container") React.render( , @item) document.body.appendChild(@item)