Mailspring/app/internal_packages_disabled/plugins/lib/main.jsx

17 lines
466 B
React
Raw Normal View History

2017-09-27 02:33:08 +08:00
import { PreferencesUIStore } from 'nylas-exports';
import PluginsView from './preferences-plugins';
export function activate() {
this.preferencesTab = new PreferencesUIStore.TabItem({
2017-09-27 02:33:08 +08:00
tabId: 'Plugins',
displayName: 'Plugins',
componentClassFn: () => PluginsView,
});
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
}
export function deactivate() {
2017-09-27 02:33:08 +08:00
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
}