aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/textarea/index.tsx
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-12-01 00:33:39 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-30 19:03:39 +0000
commit6df93308d7a93cccb281f3e979668df23007ab5d (patch)
tree7cce68384707b3bec22c1b5f7b37b9be63bb1ce8 /src/components/ui/textarea/index.tsx
parentfix: [#809] unable to save custom icon for any service (#811) (diff)
downloadferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.tar.gz
ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.tar.zst
ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.zip
chore: [#42] use noop consistently throughout (#808)
Diffstat (limited to 'src/components/ui/textarea/index.tsx')
-rw-r--r--src/components/ui/textarea/index.tsx7
1 files changed, 4 insertions, 3 deletions
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';
2import { Component, createRef, TextareaHTMLAttributes } from 'react'; 2import { Component, createRef, TextareaHTMLAttributes } from 'react';
3import injectSheet, { WithStylesProps } from 'react-jss'; 3import injectSheet, { WithStylesProps } from 'react-jss';
4 4
5import { noop } from 'lodash';
5import { IFormField } from '../typings/generic'; 6import { IFormField } from '../typings/generic';
6 7
7import Error from '../error'; 8import Error from '../error';
@@ -24,9 +25,9 @@ interface IProps
24 25
25class TextareaComponent extends Component<IProps> { 26class 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,