Skip to content

Commit

Permalink
fix: response issue in blog view and page index issue
Browse files Browse the repository at this point in the history
issue fixed in blog view and page index
  • Loading branch information
jasurobo committed Nov 29, 2021
1 parent 5d40b50 commit e9d8b72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions component/layout/BlogPost/BlogPost.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ div.code {
width: min(350px, 20vw);
}
@screen 2xl {
width: min(350px, 23vw);
width: min(350px, 20vw);
}
@media (max-width: 1200px) {
@apply p-0 w-auto rounded-sm;
Expand All @@ -142,7 +142,7 @@ div.code {
&:before {
@apply mr-4;
counter-increment: count;
content: "0" counter(count);
content: counter(count);
}
}
[class*="linkUnderline"] {
Expand Down
7 changes: 4 additions & 3 deletions component/profile/BlogList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ export default function BlogList({ posts, getNewPostsWithCount, postsCount }) {
setCount(newCount);
getNewPostsWithCount(newCount);
};
console.log(posts, 'BlogList');

return (
<div className={`bg-white shadow-sm rounded p-4 mt-4 `}>
<div className="flex justify-between items-center">
<span className="font-bold">Blog</span>
<span className="font-bold">Blogs</span>
</div>
<div className="flex flex-wrap pb-2 w-full">
{posts?.length > 0 ? (
Expand All @@ -29,10 +30,10 @@ export default function BlogList({ posts, getNewPostsWithCount, postsCount }) {
<div
className={`flex justify-between rounded border p-3 w-full`}
>
{blog.bannerImage ? (
{blog.banner_image ? (
<div className="w-32 h-32 rounded-md flex items-center justify-center text-white">
<img
src={blog.bannerImage}
src={blog.banner_image}
alt="banner"
className="rounded-md w-32 h-32 object-cover"
></img>
Expand Down

0 comments on commit e9d8b72

Please sign in to comment.