mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-19 13:46:55 +08:00
Summary: feat(notifications): move to sidebar Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1282
24 lines
674 B
CoffeeScript
24 lines
674 B
CoffeeScript
React = require "react"
|
|
Notifications = require "./notifications"
|
|
NotificationsStickyBar = require "./notifications-sticky-bar"
|
|
{ComponentRegistry} = require("inbox-exports")
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state={}) ->
|
|
ComponentRegistry.register
|
|
view: Notifications
|
|
name: 'Notifications'
|
|
role: 'Root:Left'
|
|
|
|
ComponentRegistry.register
|
|
view: NotificationsStickyBar
|
|
name: 'NotificationsStickyBar'
|
|
role: 'Root:Top'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister('NotificationsStickyBar')
|
|
ComponentRegistry.unregister('Notifications')
|
|
|
|
serialize: -> @state
|