Skip to content

Commit

Permalink
Merge pull request #112 from SpaceyaTech/rename-related-blogs-to-arti…
Browse files Browse the repository at this point in the history
…cles

rename related blogs header
  • Loading branch information
spaceyatech-org authored Jan 23, 2024
2 parents aed3a94 + 78a4f37 commit 327bc73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/APP/pages/blog/sections/RelatedBlogs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function RelatedBlogs({ blogId, categoryId }) {
{isSuccess && filteredRelatedBlogs.length > 0 && (
<>
<h2 className="text-2xl text-gray-500 font-semibold underline decoration-green-600 underline-offset-2">
Related Blogs
{filteredRelatedBlogs.length > 1
? "Related Articles"
: "Related Article"}
</h2>
<div className="grid sm:grid-cols-2 gap-16 grid-cols-1 py-16">
{Array.isArray(filteredRelatedBlogs) &&
Expand Down
6 changes: 5 additions & 1 deletion src/APP/pages/blogs/sections/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ function Banner() {
value={searchText}
onChange={(e) => setSearchText(e.target.value)}
/>
<button type="submit" className="w-1/10 p-2">
<button
type="submit"
className="w-1/10 p-2"
onClick={(e) => e.preventDefault()}
>
<img src={search} alt="search" className="w-6 h-6" />
</button>
</form>
Expand Down

0 comments on commit 327bc73

Please sign in to comment.