Lint all the things
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
import { gql, useMutation } from "@apollo/client";
|
||||
import { Button, Popconfirm } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { INSERT_EXPORT_LOG } from "../../graphql/accounting.queries";
|
||||
import { selectBodyshop, selectCurrentUser } from "../../redux/user/user.selectors";
|
||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||
import { isFunction } from "lodash";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
currentUser: selectCurrentUser
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
const mapDispatchToProps = () => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
|
||||
@@ -49,7 +50,9 @@ export function PaymentMarkSelectedExported({
|
||||
loadingCallback(true);
|
||||
const result = await updatePayments({
|
||||
variables: { paymentIds: paymentIds, exportedat: new Date() },
|
||||
update(cache) {}
|
||||
update() {
|
||||
// NO OP
|
||||
}
|
||||
});
|
||||
|
||||
await insertExportLog({
|
||||
@@ -78,9 +81,16 @@ export function PaymentMarkSelectedExported({
|
||||
});
|
||||
}
|
||||
loadingCallback(false);
|
||||
completedCallback && completedCallback([]);
|
||||
|
||||
if (isFunction(completedCallback)) {
|
||||
completedCallback([]);
|
||||
}
|
||||
|
||||
setLoading(false);
|
||||
refetch && refetch();
|
||||
|
||||
if (isFunction(refetch)) {
|
||||
refetch();
|
||||
}
|
||||
setOpen(false);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user