mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
18 lines
613 B
CoffeeScript
18 lines
613 B
CoffeeScript
React = require "react"
|
|
AccountSwitcher = require "./account-switcher"
|
|
AccountSidebar = require "./account-sidebar"
|
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state) ->
|
|
ComponentRegistry.register AccountSwitcher,
|
|
location: WorkspaceStore.Location.RootSidebar
|
|
|
|
ComponentRegistry.register AccountSidebar,
|
|
location: WorkspaceStore.Location.RootSidebar
|
|
|
|
deactivate: (@state) ->
|
|
ComponentRegistry.unregister(AccountSwitcher)
|
|
ComponentRegistry.unregister(AccountSidebar)
|