Skip to content

Commit

Permalink
DT-1293: Bug fix for typo and linting fixes (#2800)
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong authored Feb 28, 2025
1 parent ad0c3c2 commit 23c21ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/modals/SupportRequestModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import addHelpIcon from '../../images/icon_add_help.png';

try {
Modal.setAppElement('#root');
} catch (error) {
} catch (_error) {
// trycatch for unit testing purposes, since #root may not always exist
// when testing a component in isolation
}
Expand Down Expand Up @@ -110,7 +110,7 @@ export const SupportRequestModal = (props) => {
description: '',
attachment: ''
});
props.onOKRequest('support');
props.onOkRequest('support');
} catch (response) {
Notifications.showError({
text: `ERROR ${response.status} : Unable To Send: ${response.data?.message}`,
Expand Down Expand Up @@ -167,7 +167,7 @@ export const SupportRequestModal = (props) => {
};

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

0 comments on commit 23c21ad

Please sign in to comment.