mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-05 14:59:28 +08:00
16 lines
481 B
CoffeeScript
16 lines
481 B
CoffeeScript
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'
|
|
|
|
@item = document.createElement("div")
|
|
@item.setAttribute("id", "onboarding-container")
|
|
@item.setAttribute("class", "onboarding-container")
|
|
React.render(<ContainerView /> , @item)
|
|
document.body.appendChild(@item)
|