Update prettier/eslint
This commit is contained in:
@@ -5,10 +5,7 @@ import DropDown from '../../components/UI/DropDown/DropDown';
|
||||
import PropTypes from 'prop-types';
|
||||
import Text from '../../components/UI/Text/Text';
|
||||
import { Component } from 'react';
|
||||
import {
|
||||
addEditHost,
|
||||
completeAddEditHost,
|
||||
} from '../../redux/actions/host_actions';
|
||||
import { addEditHost, completeAddEditHost } from '../../redux/actions/host_actions';
|
||||
import { connect } from 'react-redux';
|
||||
import { createDismissDisplay } from '../../utils.jsx';
|
||||
import { notifyError } from '../../redux/actions/error_actions';
|
||||
@@ -77,9 +74,7 @@ class AddEditHost extends Component {
|
||||
</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<input
|
||||
onChange={(e) =>
|
||||
this.setState({ HostNameOrIp: e.target.value.trim() })
|
||||
}
|
||||
onChange={(e) => this.setState({ HostNameOrIp: e.target.value.trim() })}
|
||||
className={'ConfigurationItemInput'}
|
||||
style={{ width: '100%' }}
|
||||
type={'text'}
|
||||
@@ -103,9 +98,7 @@ class AddEditHost extends Component {
|
||||
<div style={{ width: 'var(--default_spacing)' }} />
|
||||
<div style={{ width: 'var(--default_spacing)' }} />
|
||||
<input
|
||||
onChange={(e) =>
|
||||
this.setState({ ApiPort: parseInt(e.target.value) })
|
||||
}
|
||||
onChange={(e) => this.setState({ ApiPort: parseInt(e.target.value) })}
|
||||
className={'ConfigurationItemInput'}
|
||||
style={{ width: '100%' }}
|
||||
type={'number'}
|
||||
@@ -116,9 +109,7 @@ class AddEditHost extends Component {
|
||||
<div style={{ width: 'var(--default_spacing)' }} />
|
||||
<div style={{ width: 'var(--default_spacing)' }} />
|
||||
<input
|
||||
onChange={(e) =>
|
||||
this.setState({ TimeoutMs: parseInt(e.target.value) })
|
||||
}
|
||||
onChange={(e) => this.setState({ TimeoutMs: parseInt(e.target.value) })}
|
||||
className={'ConfigurationItemInput'}
|
||||
style={{ width: '100%' }}
|
||||
type={'number'}
|
||||
@@ -129,17 +120,9 @@ class AddEditHost extends Component {
|
||||
</div>
|
||||
<div style={{ height: 'var(--default_spacing)' }} />
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<Text
|
||||
text={'Agent String (optional)'}
|
||||
textAlign={'left'}
|
||||
type={'Heading2'}
|
||||
/>
|
||||
<Text text={'Agent String (optional)'} textAlign={'left'} type={'Heading2'} />
|
||||
<div style={{ width: 'var(--default_spacing)' }} />
|
||||
<Text
|
||||
text={'API Key (optional)'}
|
||||
textAlign={'left'}
|
||||
type={'Heading2'}
|
||||
/>
|
||||
<Text text={'API Key (optional)'} textAlign={'left'} type={'Heading2'} />
|
||||
</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<input
|
||||
@@ -160,11 +143,7 @@ class AddEditHost extends Component {
|
||||
</div>
|
||||
<div style={{ height: 'var(--default_spacing)' }} />
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<Text
|
||||
text={'Authentication URL (premium)'}
|
||||
textAlign={'left'}
|
||||
type={'Heading2'}
|
||||
/>
|
||||
<Text text={'Authentication URL (premium)'} textAlign={'left'} type={'Heading2'} />
|
||||
</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<input
|
||||
@@ -176,17 +155,9 @@ class AddEditHost extends Component {
|
||||
</div>
|
||||
<div style={{ height: 'var(--default_spacing)' }} />
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<Text
|
||||
text={'User Name (premium)'}
|
||||
textAlign={'left'}
|
||||
type={'Heading2'}
|
||||
/>
|
||||
<Text text={'User Name (premium)'} textAlign={'left'} type={'Heading2'} />
|
||||
<div style={{ width: 'var(--default_spacing)' }} />
|
||||
<Text
|
||||
text={'Password (premium)'}
|
||||
textAlign={'left'}
|
||||
type={'Heading2'}
|
||||
/>
|
||||
<Text text={'Password (premium)'} textAlign={'left'} type={'Heading2'} />
|
||||
</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<input
|
||||
@@ -235,8 +206,7 @@ const mapStateToProps = (state) => {
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
Close: () => dispatch(addEditHost(false)),
|
||||
completeAddEditHost: (host_data) =>
|
||||
dispatch(completeAddEditHost(true, host_data)),
|
||||
completeAddEditHost: (host_data) => dispatch(completeAddEditHost(true, host_data)),
|
||||
notifyError: (msg) => dispatch(notifyError(msg)),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user