fix warnings page blog item

This commit is contained in:
Ehsan
2025-05-12 23:11:41 +03:30
parent de1f307574
commit cd3114d308
3 changed files with 11 additions and 12 deletions
+2 -1
View File
@@ -4,12 +4,13 @@ function MultilineLoading({ loading, width, height, children, line }) {
return loading
? Array(line)
.fill({})
.map((_) => (
.map((_, idx) => (
<Skeleton
className={`${width === "full" ? "!w-full" : ""} !my-2`}
variant="rounded"
height={height}
width={width}
key={idx}
/>
))
: children;
+1 -2
View File
@@ -9,9 +9,8 @@ function SocialMedia({ loading }) {
return (
<ul className="flex mt-0 sm:mt-[3px] md:mt-[6px] lg:mt-[8px] pb-[16px] sm:pb-[21px] md:pb-[27px] lg:pb-[32px] relative items-center justify-end gap-4">
{socials.map((item, idx) => (
<CircularLoading width={36} height={36} loading={loading}>
<CircularLoading width={36} key={idx} height={36} loading={loading}>
<li
key={idx}
className="bg-[#EFEFEF] rounded-full hover-rotate-icon p-[9px]"
>
{item}
-1
View File
@@ -1,5 +1,4 @@
import { listNav } from "@/constans";
import { isActiveURL } from "@/helper";
import Link from "next/link";
function Row({ name }) {