diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 3ee0a498..91bffbc2 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -8,4 +8,4 @@ export const Header = () => { {process.env.REACT_APP_VERSION} ); -} +}; diff --git a/frontend/src/components/KeyRequestForm.tsx b/frontend/src/components/KeyRequestForm.tsx index 7389b8b6..628a48f8 100644 --- a/frontend/src/components/KeyRequestForm.tsx +++ b/frontend/src/components/KeyRequestForm.tsx @@ -71,15 +71,15 @@ export class KeyRequestForm extends Component<{}, State> { handleChange = (name: K) => - (event: ChangeEvent) => { - if (name === "timeout") { - localStorage.setItem("timeout", event.currentTarget.value); - } + (event: ChangeEvent) => { + if (name === "timeout") { + localStorage.setItem("timeout", event.currentTarget.value); + } - this.setState((prevState) => { - return { ...prevState, [name]: event.currentTarget.value }; - }); - }; + this.setState((prevState) => { + return { ...prevState, [name]: event.currentTarget.value }; + }); + }; setAccount = (event: ChangeEvent) => { this.setState({ selectedAccount: event.currentTarget.value }); diff --git a/frontend/src/components/LoginForm.tsx b/frontend/src/components/LoginForm.tsx index 44907349..7ff8b3b0 100644 --- a/frontend/src/components/LoginForm.tsx +++ b/frontend/src/components/LoginForm.tsx @@ -68,13 +68,13 @@ export class LoginForm extends Component<{}, State> { const handleTextChange = (property: "username" | "password") => - (_event: unknown, data: { value: string }) => { - const { username, password } = this.state; - updateUserInfo({ - username: "username" === property ? data.value : username, - password: "password" === property ? data.value : password, - }); - }; + (_event: unknown, data: { value: string }) => { + const { username, password } = this.state; + updateUserInfo({ + username: "username" === property ? data.value : username, + password: "password" === property ? data.value : password, + }); + }; const handleSubmit = () => { const { username, password } = this.state;