Prettier support

This commit is contained in:
2021-03-10 21:14:32 -06:00
parent c51b527707
commit 0924490a6f
99 changed files with 5504 additions and 3979 deletions

View File

@@ -1,17 +1,18 @@
import React from 'react';
import './Dependency.css';
import {connect} from 'react-redux';
import { connect } from 'react-redux';
import * as Constants from '../../../constants';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
return {
AllowDownload: (state.download.DownloadType !== Constants.INSTALL_TYPES.Dependency) &&
AllowDownload:
state.download.DownloadType !== Constants.INSTALL_TYPES.Dependency &&
!state.download.DownloadActive &&
!state.install.InstallActive,
};
};
export default connect(mapStateToProps)(props => {
export default connect(mapStateToProps)((props) => {
return (
<div className={'Dependency'}>
<table width="100%">
@@ -21,11 +22,20 @@ export default connect(mapStateToProps)(props => {
<h3>{props.name}</h3>
</td>
<td>
{props.AllowDownload ?
<a href={'#'}
className={'DependencyLink'}
onClick={()=>{props.onDownload(); return false;}}><u>Install</u></a> :
'Installing...'}
{props.AllowDownload ? (
<a
href={'#'}
className={'DependencyLink'}
onClick={() => {
props.onDownload();
return false;
}}
>
<u>Install</u>
</a>
) : (
'Installing...'
)}
</td>
</tr>
</tbody>