Added eslint

This commit is contained in:
MaxOvs19 committed 2023-05-31 11:24:46 +03:00
1 parent fc8fc33733
commit 9e242ddf5d
40 files changed
+224 -536

No files matched your search

+2
View File
@@ -29,8 +29,10 @@ const Form = () => {
const handleModal = (status) => {
SweetAlert.fire({
text:
// eslint-disable-next-line no-constant-condition
status !== 200 || 201 ? "Какие-то неполадки =(" : "Форма отправлена",
preConfirm: () =>
// eslint-disable-next-line no-constant-condition
status !== 200 || 201
? () => {
setStatus(null);