Mailspring/internal_packages/today/lib/main.cjsx

17 lines
479 B
Text
Raw Normal View History

TodayView = require "./today-view"
TodayIcon = require "./today-icon"
{ComponentRegistry,
WorkspaceStore} = require 'nylas-exports'
module.exports =
activate: (@state={}) ->
WorkspaceStore.defineSheet 'Today', {root: true, supportedModes: ['list'], name: 'Today', icon: TodayIcon},
list: ['RootSidebar', 'Today']
ComponentRegistry.register TodayView,
location: WorkspaceStore.Location.Today
deactivate: ->
ComponentRegistry.unregister(TodayView)