DevClad-Inc / devclad

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
3 occurrences in this check
JSX props should not use arrow functions
188
189										<div className="-ml-px flex w-0 flex-1">
190											<PrimaryButton
191												onClick={() => {192													handleMail(193														user.first_name,194														user.email,195														'approved',196														user.id,197														'True'198													);199												}}200												className="relative inline-flex w-0 flex-1 items-center justify-center rounded-br-md border border-transparent py-4 text-sm font-medium text-neutral-300 hover:text-neutral-100"
201											>
202												<CheckCircleIcon
JSX props should not use arrow functions
172										<div className="flex w-0 flex-1">
173											<button
174												type="button"
175												onClick={() => {176													handleMail(177														user.first_name,178														user.email,179														'reminder'180													);181												}}182												className="relative -mr-px inline-flex w-0 flex-1 items-center justify-center rounded-bl-md border border-transparent py-4 text-sm font-medium text-neutral-300 hover:text-neutral-100"
183											>
184												<ClockIcon className="h-5 w-5" aria-hidden="true" />
JSX props should not use arrow functions
121									</p>
122									<div className="mt-6">
123										<PrimaryButton
124											onClick={() =>125												queryParams.get('status') === 'True'126													? handleBulkMail('approved')127													: handleBulkMail('reminder')128											}129										>
130											{queryParams.get('status') === 'True'
131												? 'Send Approved Emails'