mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 22:29:03 +08:00
9378f4480c
Conflicts: internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
20 lines
659 B
CoffeeScript
20 lines
659 B
CoffeeScript
React = require "react"
|
|
Notifications = require "./notifications"
|
|
NotificationsStickyBar = require "./notifications-sticky-bar"
|
|
{ComponentRegistry, WorkspaceStore} = require("nylas-exports")
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state={}) ->
|
|
ComponentRegistry.register Notifications,
|
|
location: WorkspaceStore.Location.RootSidebar
|
|
|
|
ComponentRegistry.register NotificationsStickyBar,
|
|
location: WorkspaceStore.Sheet.Global.Header
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister('NotificationsStickyBar')
|
|
ComponentRegistry.unregister('Notifications')
|
|
|
|
serialize: -> @state
|