From 2ac45bf704f05bfbb93ef04f4ab564f637eefdd1 Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Sun, 18 Aug 2024 20:04:27 +0530 Subject: [PATCH] refactor loading components and add loading for edit profiles --- app/(root)/profile/edit/loading.tsx | 41 +++++++++++++++++++ app/(root)/thread/edit/{[id] => }/loading.tsx | 0 app/(root)/thread/{[id] => }/loading.tsx | 0 3 files changed, 41 insertions(+) create mode 100644 app/(root)/profile/edit/loading.tsx rename app/(root)/thread/edit/{[id] => }/loading.tsx (100%) rename app/(root)/thread/{[id] => }/loading.tsx (100%) diff --git a/app/(root)/profile/edit/loading.tsx b/app/(root)/profile/edit/loading.tsx new file mode 100644 index 0000000..a564fd7 --- /dev/null +++ b/app/(root)/profile/edit/loading.tsx @@ -0,0 +1,41 @@ +import { Skeleton } from '@/components/ui/skeleton'; + +function Loading() { + return ( +
+ + + +
+
+
+ +
+ + +
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+
+ ); +} + +export default Loading; diff --git a/app/(root)/thread/edit/[id]/loading.tsx b/app/(root)/thread/edit/loading.tsx similarity index 100% rename from app/(root)/thread/edit/[id]/loading.tsx rename to app/(root)/thread/edit/loading.tsx diff --git a/app/(root)/thread/[id]/loading.tsx b/app/(root)/thread/loading.tsx similarity index 100% rename from app/(root)/thread/[id]/loading.tsx rename to app/(root)/thread/loading.tsx