Mailspring/app/internal_packages/category-mapper/lib/main.es6

15 lines
459 B
JavaScript

import { PreferencesUIStore } from 'mailspring-exports';
export function activate() {
this.preferencesTab = new PreferencesUIStore.TabItem({
tabId: 'Folders',
displayName: 'Folders',
componentClassFn: () => require('./preferences-category-mapper').default,
});
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
}
export function deactivate() {
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
}