Refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import React, {Component} from 'react';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
import Box from './components/UI/Box/Box';
|
import Box from './components/UI/Box/Box';
|
||||||
import Configuration from './containers/Configuration/Configuration';
|
import Configuration from './containers/Configuration/Configuration';
|
||||||
@@ -8,7 +8,6 @@ import DownloadProgress from './components/DownloadProgress/DownloadProgress';
|
|||||||
import {extractFileNameFromURL} from './utils';
|
import {extractFileNameFromURL} from './utils';
|
||||||
import ErrorDetails from './components/ErrorDetails/ErrorDetails';
|
import ErrorDetails from './components/ErrorDetails/ErrorDetails';
|
||||||
import Grid from './components/UI/Grid/Grid';
|
import Grid from './components/UI/Grid/Grid';
|
||||||
import IPCContainer from './containers/IPCContainer/IPCContainer';
|
|
||||||
import Loading from './components/UI/Loading/Loading';
|
import Loading from './components/UI/Loading/Loading';
|
||||||
import Modal from './components/UI/Modal/Modal';
|
import Modal from './components/UI/Modal/Modal';
|
||||||
import MountItems from './containers/MountItems/MountItems';
|
import MountItems from './containers/MountItems/MountItems';
|
||||||
@@ -41,7 +40,7 @@ import {
|
|||||||
const Constants = require('./constants');
|
const Constants = require('./constants');
|
||||||
const Scheduler = require('node-schedule');
|
const Scheduler = require('node-schedule');
|
||||||
|
|
||||||
class App extends IPCContainer {
|
class App extends Component {
|
||||||
checkVersionInstalled = () => {
|
checkVersionInstalled = () => {
|
||||||
this.props.setAllowDownload(false);
|
this.props.setAllowDownload(false);
|
||||||
const selectedVersion = this.getSelectedVersion();
|
const selectedVersion = this.getSelectedVersion();
|
||||||
@@ -77,7 +76,6 @@ class App extends IPCContainer {
|
|||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
Scheduler.cancelJob(this.scheduledUpdateJob);
|
Scheduler.cancelJob(this.scheduledUpdateJob);
|
||||||
super.componentWillUnmount();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
detectUpgrades = () => {
|
detectUpgrades = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user