refactor: clean up message files and improve product category handling

This commit is contained in:
2025-06-14 15:37:20 +03:30
parent 70699ec103
commit 9d5c40ff5b
8 changed files with 93 additions and 113 deletions
@@ -19,6 +19,10 @@ export default function ProductList({
.then((res) => {
setProducts(res.data);
setPagination(res.pagination);
document
.getElementById('productList')
?.scrollIntoView({ behavior: 'smooth', block: 'start' });
})
.catch((error) => {
console.error('Failed to fetch products:', error);