Mailspring/internal_packages/theme-picker/lib/main.js
Jackie Luo ba5cba3181 feat(theme-picker): Uninstall themes on click
Summary: Themes can now be uninstalled by clicking a button in the theme picker, instead of going to `~/.nylas/packages` to delete the directory.

Test Plan: Tested locally.

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2700
2016-03-08 17:08:35 -08:00

24 lines
541 B
JavaScript

/** @babel */
import React from 'react';
import Actions from '../../../src/flux/actions';
import ThemePicker from './theme-picker';
import ThemePickerStore from './theme-picker-store';
export function activate() {
ThemePickerStore.activate();
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
Actions.openModal(
children=<ThemePicker />,
height=400,
width=250,
);
});
}
export function deactivate() {
ThemePickerStore.deactivate();
this.disposable.dispose();
}