diff options
author | 2021-02-18 09:00:05 +0200 | |
---|---|---|
committer | 2021-02-18 09:02:33 +0200 | |
commit | dae3f998decac4c8cafa2607b87678d97e03d99b (patch) | |
tree | 1ecb27203e5c384dfec36fa8b540e3fb3ea06461 /src | |
parent | Mark range and radio valid after change (diff) |
Remove unnecessary parameters from blur handler type annotations
Diffstat (limited to 'src')
-rw-r--r-- | src/components/InputTypes/Select.tsx | 2 | ||||
-rw-r--r-- | src/components/InputTypes/ShortText.tsx | 4 | ||||
-rw-r--r-- | src/components/InputTypes/TextArea.tsx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/components/InputTypes/Select.tsx b/src/components/InputTypes/Select.tsx index 5652b99..69b7168 100644 --- a/src/components/InputTypes/Select.tsx +++ b/src/components/InputTypes/Select.tsx @@ -7,7 +7,7 @@ interface SelectProps { options: Array<string>, state_dict: Map<string, string | boolean | null>, valid: boolean, - onBlurHandler: (event: React.FocusEvent<HTMLDivElement>) => void + onBlurHandler: () => void } const containerStyles = css` diff --git a/src/components/InputTypes/ShortText.tsx b/src/components/InputTypes/ShortText.tsx index dbf14ad..8d99dc6 100644 --- a/src/components/InputTypes/ShortText.tsx +++ b/src/components/InputTypes/ShortText.tsx @@ -1,11 +1,11 @@ /** @jsx jsx */ import { jsx } from "@emotion/react"; -import React, { ChangeEvent, FocusEvent } from "react"; +import React, { ChangeEvent } from "react"; import { textInputs, invalidStyles } from "../../commonStyles"; interface ShortTextProps { handler: (event: ChangeEvent<HTMLInputElement>) => void, - onBlurHandler: (event: FocusEvent<HTMLInputElement>) => void, + onBlurHandler: () => void, valid: boolean, // eslint-disable-next-line @typescript-eslint/no-explicit-any focus_ref: React.RefObject<any> diff --git a/src/components/InputTypes/TextArea.tsx b/src/components/InputTypes/TextArea.tsx index 35afe67..08424fb 100644 --- a/src/components/InputTypes/TextArea.tsx +++ b/src/components/InputTypes/TextArea.tsx @@ -1,11 +1,11 @@ /** @jsx jsx */ import { jsx, css } from "@emotion/react"; -import React, { ChangeEvent, FocusEvent } from "react"; +import React, { ChangeEvent } from "react"; import { invalidStyles, textInputs } from "../../commonStyles"; interface TextAreaProps { handler: (event: ChangeEvent<HTMLTextAreaElement>) => void, - onBlurHandler: (event: FocusEvent<HTMLTextAreaElement>) => void, + onBlurHandler: () => void, valid: boolean, // eslint-disable-next-line @typescript-eslint/no-explicit-any focus_ref: React.RefObject<any> |