diff --git a/frontend/src/components/CodeSkeleton.tsx b/frontend/src/components/CodeSkeleton.tsx
new file mode 100644
index 0000000..996d03a
--- /dev/null
+++ b/frontend/src/components/CodeSkeleton.tsx
@@ -0,0 +1,26 @@
+
+const SkeletonLoader = () => {
+ return (
+
+ );
+};
+
+export default SkeletonLoader;
diff --git a/frontend/src/pages/Post.tsx b/frontend/src/pages/Post.tsx
index 0776bb2..3a35f6b 100644
--- a/frontend/src/pages/Post.tsx
+++ b/frontend/src/pages/Post.tsx
@@ -1,7 +1,6 @@
import { useEffect, useState } from "react";
import { Link, useNavigate, useParams } from "react-router-dom";
import axios, { AxiosError } from "axios";
-import Loader from "../components/Loader";
import toast from "react-hot-toast";
import Comment from "./Comment";
import { MdFavorite } from "react-icons/md";
@@ -20,6 +19,7 @@ import { tokenState, userState } from "../store/atoms/auth";
import { useRecoilValue } from "recoil";
import { RiUserFollowFill } from "react-icons/ri";
import { RiUserUnfollowFill } from "react-icons/ri";
+import CodeSkeletonLoader from "../components/CodeSkeleton";
const Post = () => {
const { id } = useParams<{ id: string }>();
@@ -173,7 +173,7 @@ const Post = () => {
};
if (loading) {
- return ;
+ return ;
}
if (error) {