empty data component

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-12-11 18:54:27 +05:00
parent cf26b778fc
commit 6e41a836a7
6 changed files with 101 additions and 16 deletions

View File

@@ -2,9 +2,12 @@ import axios from "axios";
export const allProduct = async () => {
try{
const res = await axios.get('')
const res = await axios.get('https://api.serenmebel.uz/api/products/');
console.log("all products res: ",res);
return res
}catch(err){
console.log("all product error: ",err);
return []
}
};

View File

@@ -92,6 +92,10 @@ export const translations = {
},
more: "Ko'proq ko'rish",
details: "Batafsil",
empty_data:{
description:"Mahsulot topilmadi!!!",
back:"Asosiy sahifaga qaytish"
}
},
ru: {