Product detail modal
This commit is contained in:
@ -18,9 +18,7 @@ function Home() {
|
||||
}, []);
|
||||
|
||||
const onMachineSelect = (machineName, machineId) => {
|
||||
console.log("selected:", machineName);
|
||||
machinesApi.listProducts(machineId).then((response) => {
|
||||
console.log(response.data.products);
|
||||
setProductsData({
|
||||
machineName,
|
||||
products: response.data.products,
|
||||
|
||||
Reference in New Issue
Block a user