fix(theme-picker): Fix linter issues for ES6

This commit is contained in:
Jackie Luo 2016-03-08 17:41:22 -08:00
parent e94dbbdca1
commit ea5744d0ed
2 changed files with 7 additions and 7 deletions

View file

@ -16,12 +16,12 @@ class ThemePickerStore extends NylasStore {
activate = ()=> {
this._apm = new APMWrapper();
this.unlisten = ThemePickerActions.uninstallTheme.listen(this.uninstallTheme);
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
Actions.openModal(
children=<ThemePicker />,
height=400,
width=250,
);
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
Actions.openModal({
component: (<ThemePicker />),
height: 400,
width: 250,
});
});
}

View file

@ -40,7 +40,7 @@ class ModalStore extends NylasStore {
});
};
openModal = (component, height, width, callback = ()=> {})=> {
openModal = ({component, height, width}, callback = ()=> {})=> {
const props = {
height: height,
width: width,