From 8f61e313a9ff93b71088a6e166fa429a93a11ebf Mon Sep 17 00:00:00 2001 From: Shiva Date: Wed, 8 Nov 2023 14:18:36 +0530 Subject: [PATCH] Added edit profile loading --- src/app/edit-profile/page.tsx | 6 +-- src/components/loading/EditProfileLoading.tsx | 41 +++++++++++++++++++ 2 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 src/components/loading/EditProfileLoading.tsx diff --git a/src/app/edit-profile/page.tsx b/src/app/edit-profile/page.tsx index c2b2324..5c25391 100644 --- a/src/app/edit-profile/page.tsx +++ b/src/app/edit-profile/page.tsx @@ -5,7 +5,7 @@ import axios from "axios"; import { getCookie } from "cookies-next"; import { Camera, Check } from "lucide-react"; -import SpinLoading from "@/components/loading/SpinLoading"; +import EditProfileLoading from "@/components/loading/EditProfileLoading"; import AvatarModal from "@/components/shared/AvatarModal"; import { useProfile } from "@/context/ProfileUpdateContext"; import { Error } from "@/types/ErrorTypes"; @@ -73,9 +73,7 @@ const Page = () => { return ( <> {loading ? ( -
- -
+ ) : (

Profile

diff --git a/src/components/loading/EditProfileLoading.tsx b/src/components/loading/EditProfileLoading.tsx new file mode 100644 index 0000000..f70edd3 --- /dev/null +++ b/src/components/loading/EditProfileLoading.tsx @@ -0,0 +1,41 @@ +import React from "react"; +import { Camera, Check } from "lucide-react"; + +const EditProfileLoading = () => { + return ( + +

Profile

+ +
+
+
+ +
+
+ +
+ +
+ + +
+ + +
+ +
+
+
+ ); +}; + +export default EditProfileLoading;