add loading all page & change bugs

This commit is contained in:
Ehsan
2024-09-05 22:20:18 +03:30
parent 087ed4a818
commit c45a161fcb
72 changed files with 1208 additions and 661 deletions
+2 -1
View File
@@ -2,7 +2,7 @@ import articles from '@/data/articles.json';
import Article from "./Article";
import Pagination from '@/app/component/Pagination';
function LatestArticles() {
function LatestArticles({ loading }) {
return (
<div>
<p className="text-[#3B3B3B] text-[20px] font-bold my-[16px] md:my-[20px] lg:my-[24px]">جدیدترین مقاله ها</p>
@@ -11,6 +11,7 @@ function LatestArticles() {
<Article
data={item}
key={item.id}
loading={loading}
/>
))}
</ul>