diff --git a/webclient/package.json b/webclient/package.json index 87b56d51..71aacd3e 100644 --- a/webclient/package.json +++ b/webclient/package.json @@ -33,8 +33,8 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "lint": "eslint ./**/*.{ts,tsx}", - "lint:fix": "eslint ./**/*.{ts,tsx} --fix" + "lint": "eslint './**/*.{ts,tsx}'", + "lint:fix": "eslint './**/*.{ts,tsx}' --fix" }, "eslintConfig": { "extends": "react-app" diff --git a/webclient/src/components/RegistrationDialog/RegistrationDialog.tsx b/webclient/src/components/RegistrationDialog/RegistrationDialog.tsx index 76d6974c..cd1743e9 100644 --- a/webclient/src/components/RegistrationDialog/RegistrationDialog.tsx +++ b/webclient/src/components/RegistrationDialog/RegistrationDialog.tsx @@ -1,36 +1,36 @@ -import React from 'react'; -import Dialog from '@material-ui/core/Dialog'; -import DialogContent from '@material-ui/core/DialogContent'; -import DialogTitle from '@material-ui/core/DialogTitle'; -import IconButton from '@material-ui/core/IconButton'; -import CloseIcon from '@material-ui/icons/Close'; -import Typography from '@material-ui/core/Typography'; - -import { RegisterForm } from 'forms'; - -import './RegistrationDialog.css'; - -const RegistrationDialog = ({ classes, handleClose, isOpen }: any) => { - const handleOnClose = () => { - handleClose(); - } - - return ( - - ); -}; - -export default RegistrationDialog; +import React from 'react'; +import Dialog from '@material-ui/core/Dialog'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogTitle from '@material-ui/core/DialogTitle'; +import IconButton from '@material-ui/core/IconButton'; +import CloseIcon from '@material-ui/icons/Close'; +import Typography from '@material-ui/core/Typography'; + +import { RegisterForm } from 'forms'; + +import './RegistrationDialog.css'; + +const RegistrationDialog = ({ classes, handleClose, isOpen }: any) => { + const handleOnClose = () => { + handleClose(); + } + + return ( + + ); +}; + +export default RegistrationDialog; diff --git a/webclient/src/forms/RegisterForm/RegisterForm.tsx b/webclient/src/forms/RegisterForm/RegisterForm.tsx index 7e743d20..7e8b1163 100644 --- a/webclient/src/forms/RegisterForm/RegisterForm.tsx +++ b/webclient/src/forms/RegisterForm/RegisterForm.tsx @@ -1,66 +1,66 @@ -// eslint-disable-next-line +// eslint-disable-next-line import React, { Component } from 'react'; -import { connect } from 'react-redux'; -import { Form, Field, reduxForm, change } from 'redux-form' - -import Button from '@material-ui/core/Button'; - -import { InputField, KnownHosts } from 'components'; -import { FormKey } from 'types'; - -import './RegisterForm.css'; - -const RegisterForm = (props) => { - const { dispatch, handleSubmit } = props; - - const onHostChange = ({ host, port }) => { - dispatch(change(FormKey.REGISTER, 'host', host)); - dispatch(change(FormKey.REGISTER, 'port', port)); - } - return ( -
- ); -}; - -const propsMap = { - form: FormKey.REGISTER, -}; - -const mapStateToProps = () => ({ - initialValues: { - - } -}); - -export default connect(mapStateToProps)(reduxForm(propsMap)(RegisterForm)); +import { connect } from 'react-redux'; +import { Form, Field, reduxForm, change } from 'redux-form' + +import Button from '@material-ui/core/Button'; + +import { InputField, KnownHosts } from 'components'; +import { FormKey } from 'types'; + +import './RegisterForm.css'; + +const RegisterForm = (props) => { + const { dispatch, handleSubmit } = props; + + const onHostChange = ({ host, port }) => { + dispatch(change(FormKey.REGISTER, 'host', host)); + dispatch(change(FormKey.REGISTER, 'port', port)); + } + return ( + + ); +}; + +const propsMap = { + form: FormKey.REGISTER, +}; + +const mapStateToProps = () => ({ + initialValues: { + + } +}); + +export default connect(mapStateToProps)(reduxForm(propsMap)(RegisterForm));