Lint all the things

This commit is contained in:
Dave
2025-08-19 16:23:29 -04:00
parent f6d6b548be
commit 33fb60ca1a
640 changed files with 2129 additions and 3927 deletions

View File

@@ -1,7 +1,7 @@
import { useMutation } from "@apollo/client";
import { Button, Card, Form, Popover, Space } from "antd";
import dayjs from "../../utils/day";
import React, { useState } from "react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { logImEXEvent } from "../../firebase/firebase.utils";
import { INSERT_VACATION } from "../../graphql/employees.queries";
@@ -37,7 +37,7 @@ export default function ShopEmployeeAddVacation({ employee }) {
}
});
if (!!result.errors) {
if (result.errors) {
notification["error"]({
message: t("employees.errors.adding", {
message: JSON.stringify(result.errors)
@@ -76,7 +76,7 @@ export default function ShopEmployeeAddVacation({ employee }) {
required: true
//message: t("general.validation.required"),
},
({ getFieldValue }) => ({
() => ({
async validator(rule, value) {
if (value) {
const { start } = form.getFieldsValue();
@@ -105,7 +105,7 @@ export default function ShopEmployeeAddVacation({ employee }) {
</Card>
);
const handleClick = (e) => {
const handleClick = () => {
setVisibility(true);
};