empty data component
This commit is contained in:
@@ -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 []
|
||||
}
|
||||
};
|
||||
|
||||
@@ -92,6 +92,10 @@ export const translations = {
|
||||
},
|
||||
more: "Ko'proq ko'rish",
|
||||
details: "Batafsil",
|
||||
empty_data:{
|
||||
description:"Mahsulot topilmadi!!!",
|
||||
back:"Asosiy sahifaga qaytish"
|
||||
}
|
||||
},
|
||||
|
||||
ru: {
|
||||
|
||||
Reference in New Issue
Block a user