mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 18:44:01 +08:00
fix(theme-picker): Fix linter issues for ES6
This commit is contained in:
parent
e94dbbdca1
commit
ea5744d0ed
2 changed files with 7 additions and 7 deletions
|
@ -16,12 +16,12 @@ class ThemePickerStore extends NylasStore {
|
||||||
activate = ()=> {
|
activate = ()=> {
|
||||||
this._apm = new APMWrapper();
|
this._apm = new APMWrapper();
|
||||||
this.unlisten = ThemePickerActions.uninstallTheme.listen(this.uninstallTheme);
|
this.unlisten = ThemePickerActions.uninstallTheme.listen(this.uninstallTheme);
|
||||||
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
|
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
|
||||||
Actions.openModal(
|
Actions.openModal({
|
||||||
children=<ThemePicker />,
|
component: (<ThemePicker />),
|
||||||
height=400,
|
height: 400,
|
||||||
width=250,
|
width: 250,
|
||||||
);
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ class ModalStore extends NylasStore {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
openModal = (component, height, width, callback = ()=> {})=> {
|
openModal = ({component, height, width}, callback = ()=> {})=> {
|
||||||
const props = {
|
const props = {
|
||||||
height: height,
|
height: height,
|
||||||
width: width,
|
width: width,
|
||||||
|
|
Loading…
Reference in a new issue