@@ -12,7 +12,7 @@ import addHelpIcon from '../../images/icon_add_help.png';
12
12
13
13
try {
14
14
Modal . setAppElement ( '#root' ) ;
15
- } catch ( error ) {
15
+ } catch ( _error ) {
16
16
// trycatch for unit testing purposes, since #root may not always exist
17
17
// when testing a component in isolation
18
18
}
@@ -110,7 +110,7 @@ export const SupportRequestModal = (props) => {
110
110
description : '' ,
111
111
attachment : ''
112
112
} ) ;
113
- props . onOKRequest ( 'support' ) ;
113
+ props . onOkRequest ( 'support' ) ;
114
114
} catch ( response ) {
115
115
Notifications . showError ( {
116
116
text : `ERROR ${ response . status } : Unable To Send: ${ response . data ?. message } ` ,
@@ -167,7 +167,7 @@ export const SupportRequestModal = (props) => {
167
167
} ;
168
168
169
169
const emailChangeHandler = ( e ) => {
170
- let emailText = e . target . value ;
170
+ const emailText = e . target . value ;
171
171
setModalState ( {
172
172
...modalState ,
173
173
email : emailText ,
@@ -336,7 +336,7 @@ export const SupportRequestModal = (props) => {
336
336
< div className = 'form-group first-form-group' >
337
337
< label id = 'lbl_attachment' className = 'common-color' > Attachment</ label >
338
338
< Dropzone onDrop = { ( acceptedFiles ) => attachmentChangeHandler ( acceptedFiles ) } >
339
- { ( { isDragActive, openUploader , getRootProps, getInputProps } ) => ( //eslint-disable-line no-unused-vars
339
+ { ( { isDragActive, getRootProps, getInputProps } ) => (
340
340
< section style = { {
341
341
backgroundColor : modalState . attachment . length !== 0 ? 'transparent' : ( isDragActive ? '#6898c1' : '#ebecee' ) ,
342
342
fontSize : 14 ,
0 commit comments