Skip to content

Commit 23c21ad

Browse files
authored
DT-1293: Bug fix for typo and linting fixes (#2800)
1 parent ad0c3c2 commit 23c21ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/modals/SupportRequestModal.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import addHelpIcon from '../../images/icon_add_help.png';
1212

1313
try {
1414
Modal.setAppElement('#root');
15-
} catch (error) {
15+
} catch (_error) {
1616
// trycatch for unit testing purposes, since #root may not always exist
1717
// when testing a component in isolation
1818
}
@@ -110,7 +110,7 @@ export const SupportRequestModal = (props) => {
110110
description: '',
111111
attachment: ''
112112
});
113-
props.onOKRequest('support');
113+
props.onOkRequest('support');
114114
} catch (response) {
115115
Notifications.showError({
116116
text: `ERROR ${response.status} : Unable To Send: ${response.data?.message}`,
@@ -167,7 +167,7 @@ export const SupportRequestModal = (props) => {
167167
};
168168

169169
const emailChangeHandler = (e) => {
170-
let emailText = e.target.value;
170+
const emailText = e.target.value;
171171
setModalState({
172172
...modalState,
173173
email: emailText,
@@ -336,7 +336,7 @@ export const SupportRequestModal = (props) => {
336336
<div className='form-group first-form-group'>
337337
<label id='lbl_attachment' className='common-color'>Attachment</label>
338338
<Dropzone onDrop={(acceptedFiles) => attachmentChangeHandler(acceptedFiles)}>
339-
{({ isDragActive, openUploader, getRootProps, getInputProps }) => ( //eslint-disable-line no-unused-vars
339+
{({ isDragActive, getRootProps, getInputProps }) => (
340340
<section style={{
341341
backgroundColor: modalState.attachment.length !== 0 ? 'transparent' : (isDragActive ? '#6898c1' : '#ebecee'),
342342
fontSize: 14,

0 commit comments

Comments
 (0)