diff --git a/frontend/src/utils/loader.tsx b/frontend/src/utils/loader.tsx index a9548d6d..e9a136e4 100644 --- a/frontend/src/utils/loader.tsx +++ b/frontend/src/utils/loader.tsx @@ -34,108 +34,103 @@ const SkeletonLoader: React.FC = ({ return (
- {component === 'default' - ? [...Array(skeletonCount)].map((_, idx) => ( -
-
-
-
-
-
-
-
+ {component === 'default' ? ( + [...Array(skeletonCount)].map((_, idx) => ( +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )) + ) : component === 'analysis' ? ( + [...Array(skeletonCount)].map((_, idx) => ( +
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
- )) - : component === 'analysis' - ? [...Array(skeletonCount)].map((_, idx) => ( -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )) - : component === 'chatbot' - ? [...Array(skeletonCount)].map((_, idx) => ( -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )) - : [...Array(skeletonCount)].map((_, idx) => ( -
-
-
-
-
-
-
-
-
- ))} +
+ )) + ) : component === 'chatbot' ? ( +
+
+
+
+
+
+
+
+ + {[...Array(skeletonCount * 6)].map((_, idx) => ( +
+
+
+
+
+
+ ))} +
+ ) : ( + [...Array(skeletonCount)].map((_, idx) => ( +
+
+
+
+
+
+
+
+
+ )) + )}
); };