Skip to content

Commit

Permalink
feat: added source title to single card
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Oct 31, 2023
1 parent b399ebf commit 35c1a9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ const CardWithImageRssTemplate = ({
)}
<CardBody tag="div">
<div className="category-top">
{item?.source?.length > 0 && (
<>
<span className="category">{item.source}</span>
<span className="mx-1">&mdash;</span>
</>
)}
{item?.categories?.length > 0 && item.categories[0]._ && (
<>
<span className="category">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ const CardWithoutImageRssTemplate = ({
<Card noWrapper={false} tag="div">
<CardBody tag="div">
<div className="category-top">
{item?.source?.length > 0 && (
<>
<span className="category">{item.source}</span>
<span className="mx-1">&mdash;</span>
</>
)}
{item?.categories?.length > 0 && item.categories[0]._ && (
<>
<span className="category">
Expand Down

0 comments on commit 35c1a9d

Please sign in to comment.