Lint all the things
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { MailOutlined, PrinterOutlined } from "@ant-design/icons";
|
||||
import { Space, Spin } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { setEmailOptions } from "../../redux/email/email.actions";
|
||||
import { selectPrintCenter } from "../../redux/modals/modals.selectors";
|
||||
import { selectTechnician } from "../../redux/tech/tech.selectors";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
@@ -17,19 +16,10 @@ const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
technician: selectTechnician
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
setEmailOptions: (e) => dispatch(setEmailOptions(e))
|
||||
});
|
||||
|
||||
export function PrintCenterItemComponent({
|
||||
printCenterModal,
|
||||
setEmailOptions,
|
||||
item,
|
||||
id,
|
||||
bodyshop,
|
||||
disabled,
|
||||
technician
|
||||
}) {
|
||||
const mapDispatchToProps = () => ({});
|
||||
|
||||
export function PrintCenterItemComponent({ printCenterModal, item, id, bodyshop, disabled, technician }) {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const { context } = printCenterModal;
|
||||
const notification = useNotification();
|
||||
@@ -74,7 +64,7 @@ export function PrintCenterItemComponent({
|
||||
variables: { id: id }
|
||||
},
|
||||
{
|
||||
to: context.job && context.job.ownr_ea,
|
||||
to: context.job?.ownr_ea,
|
||||
subject: item.subject
|
||||
},
|
||||
"e",
|
||||
|
||||
Reference in New Issue
Block a user