Mailspring/internal_packages/thread-search/lib/main.es6
Juan Tejada d3dcf89e9f feat(event-search): Add event search to calendar
Summary:
This commit adds the ability to perform event search in the calendar window.
To achieve this, SearchBar has been moved from the thread-search package to be a part
of the nylas-component-kit, and reused by both thread-search and nylas-calendar

When an event is selected from search results, the calendar view is moved to the selected
event. Depends on D3396 to open the event popover.

Test Plan: Manual

Reviewers: halla, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3424
2016-11-15 17:27:31 -08:00

17 lines
400 B
JavaScript

import {ComponentRegistry, WorkspaceStore} from 'nylas-exports'
import ThreadSearchBar from './thread-search-bar'
export const configDefaults = {
showOnRightSide: false,
}
export function activate() {
ComponentRegistry.register(ThreadSearchBar, {
location: WorkspaceStore.Location.ThreadList.Toolbar,
})
}
export function deactivate() {
ComponentRegistry.unregister(ThreadSearchBar)
}