Skip to content

Commit

Permalink
refactor: Disable ESLint rules for img element to enhance code qualit…
Browse files Browse the repository at this point in the history
…y in CallAndResponse component
  • Loading branch information
bramses committed Dec 17, 2024
1 parent 8aadcb9 commit 9d7ba34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/CallAndResponse.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @next/next/no-img-element */
/* eslint-disable jsx-a11y/img-redundant-alt */

'use client';

// import './CallAndResponse.css';
Expand Down Expand Up @@ -223,10 +226,9 @@ const CallAndResponse: React.FC<Props> = ({
return 'Add as Comment';
};
const [setSubmitting, setSetSubmitting] = useState(false);


return (
<div className="call-and-response">
<div>
<textarea
className="m-2 block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500"
value={text}
Expand All @@ -239,7 +241,6 @@ const CallAndResponse: React.FC<Props> = ({
setSetSubmitting(true);
await handleSubmit();
setSetSubmitting(false);

}}
className={`m-2 me-2 rounded-lg bg-blue-700 px-5 py-2.5 text-sm font-medium text-white hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 ${setSubmitting ? 'cursor-not-allowed' : ''}`}
disabled={setSubmitting}
Expand Down

0 comments on commit 9d7ba34

Please sign in to comment.