From 6545c3232674bb1ef306aa2701ac86b662481ee2 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 4 Mar 2024 01:29:22 +0100 Subject: [PATCH] removed common header in family single blog post page --- src/components/Blogs/index.jsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/Blogs/index.jsx b/src/components/Blogs/index.jsx index db472c3..fdb2aef 100644 --- a/src/components/Blogs/index.jsx +++ b/src/components/Blogs/index.jsx @@ -4,9 +4,14 @@ import usersService from "../../services/UsersService"; import Layout from "../Partials/Layout"; import LoadingSpinner from "../Spinners/LoadingSpinner"; import CommonHead from "../UserHeader/CommonHead"; +import { useSelector } from "react-redux"; export default function BlogItem(props) { + const { + userDetails: { account_type }, + } = useSelector((state) => state?.userDetails); // CHECKS IF USER Details account type + const apiCall = new usersService() const navigate = useNavigate() @@ -33,9 +38,11 @@ export default function BlogItem(props) { },[blog_id]) return ( - + {account_type == 'FULL' && + + }

-- 2.34.1