Merge branch 'blog-id-fix' of WrenchBoard/Users-Wrench into master
This commit is contained in:
@@ -28,7 +28,7 @@ export default function BlogItem(props) {
|
|||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
if(!blog_id){
|
if(!blog_id){
|
||||||
navigate('/',{replace:true})
|
return navigate('/',{replace:true})
|
||||||
}
|
}
|
||||||
apiCall.getSingleBlogData({blog_id}).then(res => {
|
apiCall.getSingleBlogData({blog_id}).then(res => {
|
||||||
setBlogdata({loading: false, data:res.data})
|
setBlogdata({loading: false, data:res.data})
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const AccountDashboard = ({ className, bannerList }) => {
|
|||||||
{getUpperBanner?.map((props, idx) => {
|
{getUpperBanner?.map((props, idx) => {
|
||||||
let image = getImage(props);
|
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;
|
props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -34,7 +34,7 @@ const AccountDashboard = ({ className, bannerList }) => {
|
|||||||
image={image}
|
image={image}
|
||||||
title={short_title}
|
title={short_title}
|
||||||
desc={short_description}
|
desc={short_description}
|
||||||
link_path={link_path}
|
link_path={card_type=='BLOG' ? `${link_path}?blog_id=${blog_id}` : link_path}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user