Product detail modal

This commit is contained in:
Eden Kirin
2024-01-23 22:32:11 +01:00
parent 0a344ed1ce
commit ea7c54a5dc
10 changed files with 98 additions and 19 deletions

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,