Lint all the things
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Dropdown } from "antd";
|
||||
import dayjs from "../../utils/day";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -14,7 +13,7 @@ const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({});
|
||||
const mapDispatchToProps = () => ({});
|
||||
|
||||
export function ScheduleBlockDay({ date, children, refetch, bodyshop, alreadyBlocked }) {
|
||||
const { t } = useTranslation();
|
||||
@@ -39,7 +38,7 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop, alreadyBlo
|
||||
variables: { app: [blockAppt] }
|
||||
});
|
||||
|
||||
if (!!result.errors) {
|
||||
if (result.errors) {
|
||||
notification["error"]({
|
||||
message: t("appointments.errors.blocking", {
|
||||
message: JSON.stringify(result.errors)
|
||||
@@ -47,7 +46,7 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop, alreadyBlo
|
||||
});
|
||||
}
|
||||
|
||||
if (!!refetch) refetch();
|
||||
if (refetch) refetch();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user