Mailspring/internal_packages/plugins/lib/main.jsx
Jackie Luo 45ef25fc02 🎨(preferences): Updates preferences to look prettier
Summary:
Adds new redesigned preferences with horizontal tab bar and refactored code.

Converts Preferences, Plugins, and a few components to ES6.

Test Plan: Tested locally.

Reviewers: evan, bengotow

Reviewed By: bengotow

Subscribers: juan

Differential Revision: https://phab.nylas.com/D2818
2016-04-01 14:01:26 -07:00

16 lines
450 B
JavaScript

import {PreferencesUIStore} from 'nylas-exports';
import PluginsView from './preferences-plugins';
export function activate() {
this.preferencesTab = new PreferencesUIStore.TabItem({
tabId: "Plugins",
displayName: "Plugins",
component: PluginsView,
});
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
}
export function deactivate() {
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId)
}