From 4f69786f19213f8b4994c9596c7a474626035199 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 20 May 2024 17:51:13 +0100 Subject: [PATCH] blog page bug fixed --- src/components/Dashboards/AccountDashboard.jsx | 16 ++++++++++------ src/components/FamilyAcc/FamilyManageTabs.jsx | 3 +++ .../FamilyAcc/FamilyPopout/AssignPrevNewTask.jsx | 2 +- src/components/FamilyAcc/Tabs/FamilyWaitlist.jsx | 5 ++++- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/Dashboards/AccountDashboard.jsx b/src/components/Dashboards/AccountDashboard.jsx index 837fd8e..42410c0 100644 --- a/src/components/Dashboards/AccountDashboard.jsx +++ b/src/components/Dashboards/AccountDashboard.jsx @@ -45,7 +45,7 @@ const AccountDashboard = ({ className, bannerList }) => { {getLowerBanner?.map((props, idx) => { let image = getImage(props); - let { short_title, short_description, short_button_text, link_path } = + let { short_title, short_description, short_button_text, link_path, card_type, blog_id } = props; return ( @@ -56,6 +56,8 @@ const AccountDashboard = ({ className, bannerList }) => { title={short_title} desc={short_description} link_path={link_path} + card_type={card_type} + blog_id={blog_id} /> ); @@ -102,7 +104,9 @@ const TopBanner = ({ image, title = "", desc = "", btn, link_path, key }) => { ); }; -const LowerBanner = ({ image, title = "", desc = "", btn, link_path, key }) => { +const LowerBanner = ({ image, title = "", desc = "", btn, link_path, card_type, blog_id, key }) => { + const newLinkPath = card_type == 'BLOG' ? `${link_path}?blog_id=${blog_id}` : link_path + return (
{
- + {title} -

+

{desc}

- + banner-img {
- + {btn}
-- 2.34.1