This commit is contained in:
hamid zarghami
2025-04-17 11:11:44 +03:30
parent 1c314972da
commit 01470f14d6
14 changed files with 67 additions and 44 deletions
+5 -4
View File
@@ -14,10 +14,11 @@ const Blog: FC = () => {
<div className='flex xl:flex-row flex-col gap-8 xl:mt-16 mt-10 items-center'>
{
data?.data?.pinnedBlogs?.map((item) => {
return (
<BlogItem key={item.id} item={item} />
)
data?.data?.pinnedBlogs?.map((item, index: number) => {
if (index < 3)
return (
<BlogItem key={item.id} item={item} />
)
})
}