Skip to content

Commit

Permalink
Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TriNitroglycerin authored and github-actions[bot] committed Aug 28, 2023
1 parent 7f7a7ae commit 78a9cff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export const Header = () => {
<Menu.Item position="right">{process.env.REACT_APP_VERSION}</Menu.Item>
</Menu>
);
}
};
16 changes: 8 additions & 8 deletions frontend/src/components/KeyRequestForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ export class KeyRequestForm extends Component<{}, State> {

handleChange =
<K extends keyof State>(name: K) =>
(event: ChangeEvent<HTMLSelectElement | HTMLInputElement>) => {
if (name === "timeout") {
localStorage.setItem("timeout", event.currentTarget.value);
}
(event: ChangeEvent<HTMLSelectElement | HTMLInputElement>) => {
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<HTMLSelectElement>) => {
this.setState({ selectedAccount: event.currentTarget.value });
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78a9cff

Please sign in to comment.