Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.setState(prevState => {
this.api.disableCurrency(coin);
const enabledCoins = prevState.enabledCoins.filter(enabledCoin => enabledCoin !== coin);
setCurrencies(prevState.portfolio.id, enabledCoins);
// TODO: Remove this when https://github.com/artemii235/SuperNET/issues/459 is fixed.
api.dialog.showMessageBox(activeWindow(), {
message: 'Marketmaker v2 cannot currently disable currencies when running, so you need to restart HyperDEX for it to take effect.',
});
return {enabledCoins};
}, () => {
this.events.emit('enabled-currencies-changed');
ipcMain.on("logviewer.open-file-dialog", () => {
// arg is empty - we simply wanting to be notified that user trying to open a file dialog
// Get focused window
const currentWindow = activeWindow().webContents;
openFileDialog(currentWindow);
});
onClick() {
activeWindow().close()
}
},
}} onClick={() => activeWindow().minimize()}>
<div style="{{height:"></div>
cursor: 'pointer'}} onClick={() => activeWindow().maximize()} />
}
onClick() {
return activeWindow().minimize()
}
},
componentDidMount() {
activeWindow().setSheetOffset(document.querySelector('.toolbar').getBoundingClientRect().height);
}
}} onClick={() => activeWindow().close()}>
onClick() {
activeWindow().maximize()
}
}
onClick() {
activeWindow().maximize()
}
}