Product detail modal

This commit is contained in:
Eden Kirin
2024-01-23 23:00:03 +01:00
parent 0a344ed1ce
commit ea7c54a5dc
10 changed files with 98 additions and 19 deletions
-2
View File
@@ -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,