mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-11 09:45:24 +08:00
Summary: Adds the draft list using a refactored list-tabular class. Also fixes several draft bugs that appeared after allowing editing. Test Plan: Run tests (need to test new ListTabular component ASAP) Reviewers: evan Reviewed By: evan Differential Revision: https://review.inboxapp.com/D1272
24 lines
676 B
CoffeeScript
24 lines
676 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:Center'
|
|
|
|
ComponentRegistry.register
|
|
view: NotificationsStickyBar
|
|
name: 'NotificationsStickyBar'
|
|
role: 'Root:Top'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister('NotificationsStickyBar')
|
|
ComponentRegistry.unregister('Notifications')
|
|
|
|
serialize: -> @state
|