Update components/productsPage/products.tsx
This commit is contained in:
@@ -17,7 +17,7 @@ export default function Products() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function getData() {
|
async function getData() {
|
||||||
await axios.get("https://api.serenmebel.uz/api/products/").then((res) => {
|
await axios.get("https://admin.promtechno.uz/api/products/").then((res) => {
|
||||||
console.log("all data: ", res?.data);
|
console.log("all data: ", res?.data);
|
||||||
const allData = res?.data || [];
|
const allData = res?.data || [];
|
||||||
setAllProducts(allData);
|
setAllProducts(allData);
|
||||||
|
|||||||
Reference in New Issue
Block a user