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 = ()=> {
|
||||
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,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ class ModalStore extends NylasStore {
|
|||
});
|
||||
};
|
||||
|
||||
openModal = (component, height, width, callback = ()=> {})=> {
|
||||
openModal = ({component, height, width}, callback = ()=> {})=> {
|
||||
const props = {
|
||||
height: height,
|
||||
width: width,
|
||||
|
|
Loading…
Reference in a new issue