mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
9c7259227d
Summary: ready for final code review! @evan @bengotow Test Plan: added some tests for the account switcher Reviewers: evan, bengotow Reviewed By: evan, bengotow Maniphest Tasks: T3546 Differential Revision: https://phab.nylas.com/D2016
13 lines
415 B
CoffeeScript
13 lines
415 B
CoffeeScript
React = require "react"
|
|
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 AccountSidebar,
|
|
location: WorkspaceStore.Location.RootSidebar
|
|
|
|
deactivate: (@state) ->
|
|
ComponentRegistry.unregister(AccountSidebar)
|