diff --git a/src/App.js b/src/App.js index b9bf6d2..794d27c 100644 --- a/src/App.js +++ b/src/App.js @@ -34,7 +34,6 @@ import { import YesNo from './components/YesNo/YesNo'; import {createModalConditionally} from './utils'; import SkynetImport from './containers/SkynetImport/SkynetImport'; -import {displaySkynetImport} from './redux/actions/skynet_actions'; import ApplicationBusy from './components/ApplicationBusy/ApplicationBusy'; import SkynetExport from './containers/SkynetExport/SkynetExport'; @@ -112,7 +111,7 @@ class App extends IPCContainer { let s3Supported = this.props.LocationsLookup[selectedVersion] && this.props.LocationsLookup[selectedVersion].s3_support; - //s3Supported = true; + s3Supported = true; const skynetSupported = this.props.LocationsLookup[selectedVersion] && this.props.LocationsLookup[selectedVersion].skynet_support; @@ -323,7 +322,7 @@ const mapDispatchToProps = dispatch => { loadReleases: () => dispatch(loadReleases()), notifyError: (msg, critical, callback) => dispatch(notifyError(msg, critical, callback)), saveState: () => dispatch(saveState()), - setDismissNewReleasesAvailable: dismiss => dispatch(setDismissNewReleasesAvailable), + setDismissNewReleasesAvailable: dismiss => dispatch(setDismissNewReleasesAvailable(dismiss)), setNewReleasesAvailable: items => dispatch(setNewReleasesAvailable(items)), setDismissUIUpgrade: dismiss => dispatch(setDismissUIUpgrade(dismiss)), }; diff --git a/src/redux/actions/install_actions.js b/src/redux/actions/install_actions.js index 68fb3df..d211fe6 100644 --- a/src/redux/actions/install_actions.js +++ b/src/redux/actions/install_actions.js @@ -155,7 +155,7 @@ export const installDependency = (source, url, isWinFSP) => { export const installAndTestRelease = (source, version, appPlatform) => { return (dispatch, getState) => { if (ipcRenderer && getState().install.InstallTestActive) { - const extractReleaseComplete = (event, arg) => { + const extractReleaseComplete = () => { ipcRenderer.send(Constants.IPC_Delete_File, { FilePath: source, }); diff --git a/src/redux/actions/mount_actions.js b/src/redux/actions/mount_actions.js index 9e99af5..ab8bac0 100644 --- a/src/redux/actions/mount_actions.js +++ b/src/redux/actions/mount_actions.js @@ -158,7 +158,7 @@ export const setProviderState = (provider, state) => { }; export const unmountAll = completedCallback => { - return (dispatch, getState) => { + return dispatch => { const ipcRenderer = getIPCRenderer(); const unmountedCallback = () => { dispatch(resetMountsState()); diff --git a/src/renderer/ipc/MountsIPC.js b/src/renderer/ipc/MountsIPC.js index 4eedbea..a977557 100644 --- a/src/renderer/ipc/MountsIPC.js +++ b/src/renderer/ipc/MountsIPC.js @@ -53,8 +53,8 @@ const unmountAllDrives = () => { } // Unmount all items - for (const i in mountedLocations) { - const data = mountedData[mountedLocations[i]]; + for (const mountLocation of mountedLocations) { + const data = mountedData[mountLocation]; helpers.stopMountProcessSync(data.Version, data.Provider, data.Remote, data.S3); } @@ -252,7 +252,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => { } }); - ipcMain.on(Constants.IPC_Unmount_All_Drives, (event, data) => { + ipcMain.on(Constants.IPC_Unmount_All_Drives, event => { unmountAllDrives(); standardIPCReply(event, Constants.IPC_Unmount_All_Drives_Reply); });