From 911a3033269d9d89ea877e51840ed8af61a34280 Mon Sep 17 00:00:00 2001 From: Joseph Chamish Date: Sun, 14 Nov 2021 22:16:13 -0500 Subject: [PATCH] Fix the additional line endings (#4476) --- webclient/package.json | 4 +- .../RegistrationDialog/RegistrationDialog.tsx | 72 +++++----- .../src/forms/RegisterForm/RegisterForm.tsx | 130 +++++++++--------- 3 files changed, 103 insertions(+), 103 deletions(-) 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 ( - - - Create New Account - - {handleOnClose ? ( - - - - ) : null} - - - - - - ); -}; - -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 ( + + + Create New Account + + {handleOnClose ? ( + + + + ) : null} + + + + + + ); +}; + +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 ( -
-
-
- - { /* Padding is off */ } -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
- -
- -
- ); -}; - -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 ( +
+
+
+ + { /* Padding is off */ } +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+ +
+ +
+ ); +}; + +const propsMap = { + form: FormKey.REGISTER, +}; + +const mapStateToProps = () => ({ + initialValues: { + + } +}); + +export default connect(mapStateToProps)(reduxForm(propsMap)(RegisterForm));