feature/IO-3103-Ant5-Notifications
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Checkbox, notification, Space, Spin } from "antd";
|
||||
import { Checkbox, Space, Spin } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { MUTATION_UPDATE_PO_CM_REECEIVED } from "../../graphql/parts-orders.queries";
|
||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||
|
||||
export default function PartsOrderCmReceived({ checked, orderLineId, partsOrderId }) {
|
||||
const [updateLine] = useMutation(MUTATION_UPDATE_PO_CM_REECEIVED);
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
const notification = useNotification();
|
||||
|
||||
const handleChange = async (e) => {
|
||||
setLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user