From 704a514542ab8fc364eb9163ed668d95a88d09d6 Mon Sep 17 00:00:00 2001
From: hamed <15238-genius.ha@users.noreply.drupalcode.org>
Date: Sun, 21 Jun 2026 11:49:30 +0330
Subject: [PATCH] feat(loading): enhance loading components with responsive
design and improved skeletons
---
app/blog/[slug]/loading.js | 22 ++++++++++++++++------
app/blogs/loading.js | 23 +++++++++++++++++++----
app/clinic/[slug]/loading.js | 16 ++++++++++------
app/clinics/loading.js | 17 ++++++++++++-----
app/doctor/[slug]/loading.js | 28 +++++++++++++++++++---------
app/doctors/loading.js | 16 +++++++++++-----
6 files changed, 87 insertions(+), 35 deletions(-)
diff --git a/app/blog/[slug]/loading.js b/app/blog/[slug]/loading.js
index 0372100..d0e878a 100644
--- a/app/blog/[slug]/loading.js
+++ b/app/blog/[slug]/loading.js
@@ -2,12 +2,22 @@ import { Skeleton } from "@mui/material";
export default function Loading() {
return (
-
-
-
-
-
-
+
);
}
diff --git a/app/blogs/loading.js b/app/blogs/loading.js
index 303763c..45c5453 100644
--- a/app/blogs/loading.js
+++ b/app/blogs/loading.js
@@ -2,10 +2,25 @@ import { Skeleton } from "@mui/material";
export default function Loading() {
return (
-
- {Array.from({ length: 6 }).map((_, idx) => (
-
- ))}
+
+
+
+ {Array.from({ length: 6 }).map((_, idx) => (
+ -
+
+
+
+ ))}
+
);
}
diff --git a/app/clinic/[slug]/loading.js b/app/clinic/[slug]/loading.js
index d298e1e..238a38b 100644
--- a/app/clinic/[slug]/loading.js
+++ b/app/clinic/[slug]/loading.js
@@ -2,13 +2,17 @@ import { Skeleton } from "@mui/material";
export default function Loading() {
return (
-
-
-
-
-
+
);
}
diff --git a/app/clinics/loading.js b/app/clinics/loading.js
index a6cbbbb..e5e814f 100644
--- a/app/clinics/loading.js
+++ b/app/clinics/loading.js
@@ -1,11 +1,18 @@
-import { Skeleton } from "@mui/material";
+"use client";
+
+import ItemClinic from "@/components/clinics/list/ItemClinic";
export default function Loading() {
return (
-
- {Array.from({ length: 6 }).map((_, idx) => (
-
- ))}
+
+
+ {Array.from({ length: 6 }).map((_, idx) => (
+ {}} />
+ ))}
+
);
}
diff --git a/app/doctor/[slug]/loading.js b/app/doctor/[slug]/loading.js
index ac2d137..e2c1fb0 100644
--- a/app/doctor/[slug]/loading.js
+++ b/app/doctor/[slug]/loading.js
@@ -1,17 +1,27 @@
-import { Skeleton } from "@mui/material";
+import CircularLoading from "@/app/component/loading/Circular";
+import CustomLoading from "@/app/component/loading/Custom";
+import TextLoading from "@/app/component/loading/Text";
export default function Loading() {
return (
-
-
-
-
-
-
-
+
);
}
diff --git a/app/doctors/loading.js b/app/doctors/loading.js
index a6cbbbb..1348869 100644
--- a/app/doctors/loading.js
+++ b/app/doctors/loading.js
@@ -1,11 +1,17 @@
-import { Skeleton } from "@mui/material";
+"use client";
+
+import ItemDoctor from "@/app/component/ItemDoctor";
export default function Loading() {
return (
-
- {Array.from({ length: 6 }).map((_, idx) => (
-
- ))}
+
+
+
+ {Array.from({ length: 6 }).map((_, idx) => (
+ {}} />
+ ))}
+
+
);
}