Add Supplier Product Mapping model Add button , All Product Maping in the table
This commit is contained in:
parent
d01da1bfc6
commit
eacaf0f867
|
|
@ -220,6 +220,14 @@ const {address : {city}} = details
|
|||
}
|
||||
];
|
||||
|
||||
const allProductMap = () => {
|
||||
const allProducts = productOptions;
|
||||
const newTableData = [...modelTableData, ...allProducts];
|
||||
setModelTableData(newTableData);
|
||||
setProductOptions([]);
|
||||
setMessage({ type: "success", data: "All Products Added Successfully" });
|
||||
}
|
||||
|
||||
return (
|
||||
<DefaultModal
|
||||
open={isModalOpen}
|
||||
|
|
@ -266,6 +274,9 @@ const {address : {city}} = details
|
|||
isOnchanges={false}
|
||||
alphabetfilter="Yes"
|
||||
/>
|
||||
<button style={{ padding: '10px 10px', margin: '0px 15px', borderRadius: '6px',fontFamily:'poppins', background: '#901D77', color: 'white', border: 'none', cursor: 'pointer' }}
|
||||
onClick={allProductMap}>Add All</button>
|
||||
|
||||
<div style={{ position: "absolute", left: "16rem", top: "1px" }}>
|
||||
<Tooltip title={"Add Product"} placement={"top"}>
|
||||
<PlusCircleOutlined
|
||||
|
|
|
|||
Loading…
Reference in New Issue