diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-12-01 00:33:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 19:03:39 +0000 |
commit | 6df93308d7a93cccb281f3e979668df23007ab5d (patch) | |
tree | 7cce68384707b3bec22c1b5f7b37b9be63bb1ce8 /src/components/ui | |
parent | fix: [#809] unable to save custom icon for any service (#811) (diff) | |
download | ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.tar.gz ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.tar.zst ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.zip |
Diffstat (limited to 'src/components/ui')
-rw-r--r-- | src/components/ui/input/index.tsx | 2 | ||||
-rw-r--r-- | src/components/ui/select/index.tsx | 2 | ||||
-rw-r--r-- | src/components/ui/textarea/index.tsx | 7 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/components/ui/input/index.tsx b/src/components/ui/input/index.tsx index a6d401195..fe8f35607 100644 --- a/src/components/ui/input/index.tsx +++ b/src/components/ui/input/index.tsx | |||
@@ -42,7 +42,7 @@ interface IProps | |||
42 | showPasswordToggle?: boolean; | 42 | showPasswordToggle?: boolean; |
43 | data?: IData; | 43 | data?: IData; |
44 | inputClassName?: string; | 44 | inputClassName?: string; |
45 | onEnterKey?: () => {}; | 45 | onEnterKey?: () => void; |
46 | } | 46 | } |
47 | 47 | ||
48 | interface IState { | 48 | interface IState { |
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx index b22c15320..31aa8a15f 100644 --- a/src/components/ui/select/index.tsx +++ b/src/components/ui/select/index.tsx | |||
@@ -386,7 +386,7 @@ class SelectComponent extends Component<IProps, IState> { | |||
386 | this.setState((state: IState) => ({ | 386 | this.setState((state: IState) => ({ |
387 | open: !state.open, | 387 | open: !state.open, |
388 | })) | 388 | })) |
389 | : () => {} | 389 | : noop |
390 | } | 390 | } |
391 | > | 391 | > |
392 | {selection} | 392 | {selection} |
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx index d4ea424be..89e85ac11 100644 --- a/src/components/ui/textarea/index.tsx +++ b/src/components/ui/textarea/index.tsx | |||
@@ -2,6 +2,7 @@ import classnames from 'classnames'; | |||
2 | import { Component, createRef, TextareaHTMLAttributes } from 'react'; | 2 | import { Component, createRef, TextareaHTMLAttributes } from 'react'; |
3 | import injectSheet, { WithStylesProps } from 'react-jss'; | 3 | import injectSheet, { WithStylesProps } from 'react-jss'; |
4 | 4 | ||
5 | import { noop } from 'lodash'; | ||
5 | import { IFormField } from '../typings/generic'; | 6 | import { IFormField } from '../typings/generic'; |
6 | 7 | ||
7 | import Error from '../error'; | 8 | import Error from '../error'; |
@@ -24,9 +25,9 @@ interface IProps | |||
24 | 25 | ||
25 | class TextareaComponent extends Component<IProps> { | 26 | class TextareaComponent extends Component<IProps> { |
26 | static defaultProps = { | 27 | static defaultProps = { |
27 | onChange: () => {}, | 28 | onChange: noop, |
28 | onBlur: () => {}, | 29 | onBlur: noop, |
29 | onFocus: () => {}, | 30 | onFocus: noop, |
30 | showLabel: true, | 31 | showLabel: true, |
31 | disabled: false, | 32 | disabled: false, |
32 | rows: 5, | 33 | rows: 5, |