diff --git a/Frontend/app/(admin)/blogs/[slug]/page.tsx b/Frontend/app/(admin)/blogs/[slug]/page.tsx index 2865841..dd3f7b6 100644 --- a/Frontend/app/(admin)/blogs/[slug]/page.tsx +++ b/Frontend/app/(admin)/blogs/[slug]/page.tsx @@ -7,6 +7,8 @@ import xButton from "@/images/icon-x.svg"; import getPostMetadata from "@/utils/getPostMetaData"; import { headers } from "next/headers"; import React from "react"; +import Icon from "@/components/icon"; +import Spacer from "@/components/Utilities/Spacer"; const getPostContent = (slug: string) => { const folder = "blogs/"; @@ -47,37 +49,10 @@ const PostPage = (props: any) => { const post = getPostContent(slug); const showModal = props.searchParams?.modal; return ( - <> - {showModal ? ( -
-
-
- - ← Back to Blogs - -
- - close button - -
-
-
- -
-
-
- ) : ( -
-
- -
-
- )} - +
+ + +
); }; diff --git a/Frontend/components/icon/Icon.tsx b/Frontend/components/icon/Icon.tsx index 19d34e7..55f6844 100644 --- a/Frontend/components/icon/Icon.tsx +++ b/Frontend/components/icon/Icon.tsx @@ -1,3 +1,5 @@ +"use client"; + import React from "react"; import * as FluentIcons from "@fluentui/react-icons"; import { IconProps, iconSize } from "./types";