Add ESLint & Run it against the system (#4470)

This commit is contained in:
Zach H 2021-11-13 14:49:06 -05:00 committed by ZeldaZach
parent 43eee6b32e
commit f789e02096
106 changed files with 1235 additions and 20242 deletions

View file

@ -1,6 +1,6 @@
import React from "react";
import React from 'react';
import { styled } from '@material-ui/core/styles';
import TextField from "@material-ui/core/TextField";
import TextField from '@material-ui/core/TextField';
import ErrorOutlinedIcon from '@material-ui/icons/ErrorOutlined';
import './InputField.css';
@ -10,14 +10,14 @@ const InputField = ({ input, label, name, autoComplete, type, meta: { touched, e
{ touched && (
<div className="inputField-validation">
{
( error &&
(error &&
<ThemedFieldError className="inputField-error">
{error}
<ErrorOutlinedIcon style={{ fontSize: 'small', fontWeight: 'bold' }} />
</ThemedFieldError>
) ||
( warning && <ThemedFieldWarning className="inputField-warning">{warning}</ThemedFieldWarning> )
(warning && <ThemedFieldWarning className="inputField-warning">{warning}</ThemedFieldWarning>)
}
</div>
) }
@ -44,4 +44,4 @@ const ThemedFieldWarning = styled('div')(({ theme }) => ({
color: theme.palette.warning.main
}));
export default InputField;
export default InputField;