From 78a9cff1450cb69f1423685ca4a8b0b4059cf263 Mon Sep 17 00:00:00 2001 From: trinitroglycerin Date: Mon, 28 Aug 2023 22:16:36 +0000 Subject: [PATCH] Apply formatting changes --- frontend/src/components/Header.tsx | 2 +- frontend/src/components/KeyRequestForm.tsx | 16 ++++++++-------- frontend/src/components/LoginForm.tsx | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) 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;