From 6df93308d7a93cccb281f3e979668df23007ab5d Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Thu, 1 Dec 2022 00:33:39 +0530 Subject: chore: [#42] use noop consistently throughout (#808) --- src/components/ui/textarea/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components/ui/textarea/index.tsx') 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'; import { Component, createRef, TextareaHTMLAttributes } from 'react'; import injectSheet, { WithStylesProps } from 'react-jss'; +import { noop } from 'lodash'; import { IFormField } from '../typings/generic'; import Error from '../error'; @@ -24,9 +25,9 @@ interface IProps class TextareaComponent extends Component { static defaultProps = { - onChange: () => {}, - onBlur: () => {}, - onFocus: () => {}, + onChange: noop, + onBlur: noop, + onFocus: noop, showLabel: true, disabled: false, rows: 5, -- cgit v1.2.3-70-g09d2