Mailspring/packages/client-app/internal_packages/account-sidebar/lib/main.coffee

14 lines
426 B
CoffeeScript

React = require "react"
AccountSidebar = require "./components/account-sidebar"
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
module.exports =
item: null # The DOM item the main React component renders into
activate: (@state) ->
ComponentRegistry.register AccountSidebar,
location: WorkspaceStore.Location.RootSidebar
deactivate: (@state) ->
ComponentRegistry.unregister(AccountSidebar)