Lint all the things
This commit is contained in:
@@ -1,22 +1,19 @@
|
||||
import { Button, Card, Form, InputNumber, Popover, Radio, Space } 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 { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||
import { TemplateList } from "../../utils/TemplateConstants";
|
||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
const mapStateToProps = createStructuredSelector({});
|
||||
const mapDispatchToProps = () => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(PrintCenterJobsLabels);
|
||||
|
||||
export function PrintCenterJobsLabels({ bodyshop, jobId }) {
|
||||
export function PrintCenterJobsLabels({ jobId }) {
|
||||
const [isModalVisible, setIsModalVisible] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const { t } = useTranslation();
|
||||
@@ -33,6 +30,7 @@ export function PrintCenterJobsLabels({ bodyshop, jobId }) {
|
||||
setLoading(false);
|
||||
};
|
||||
const handleFinish = async ({ template, ...values }) => {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { sendtype, ...restVals } = values;
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user