Remove unused code
This commit is contained in:
17
src/App.js
17
src/App.js
@@ -89,22 +89,12 @@ class App extends IPCContainer {
|
||||
!missingDependencies &&
|
||||
!this.props.InstallActive;
|
||||
|
||||
const allowConfig = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].config_support;
|
||||
|
||||
const allowSiaPrime = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].siaprime_support;
|
||||
|
||||
const noConsoleSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].no_console_supported;
|
||||
|
||||
const remoteSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].supports_remote;
|
||||
|
||||
const showConfig = !missingDependencies &&
|
||||
this.props.DisplayConfiguration &&
|
||||
!this.props.RebootRequired &&
|
||||
allowConfig;
|
||||
!this.props.RebootRequired;
|
||||
|
||||
const showUpgrade = this.props.UpgradeAvailable &&
|
||||
!this.props.DisplayError &&
|
||||
@@ -152,10 +142,7 @@ class App extends IPCContainer {
|
||||
mainContent.push((
|
||||
<Box dxStyle={{padding: 'var(--default_spacing)', height: 'auto'}}
|
||||
key={'md_' + key++}>
|
||||
<MountItems allowConfig={allowConfig}
|
||||
allowSiaPrime={allowSiaPrime}
|
||||
noConsoleSupported={noConsoleSupported}
|
||||
remoteSupported={remoteSupported}/>
|
||||
<MountItems remoteSupported={remoteSupported}/>
|
||||
</Box>
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user