Skip to content

Commit

Permalink
Wraps the program cards (which are in a ul) in a li tag (#2013)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel authored Dec 4, 2023
1 parent d2b26b6 commit 465da85
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions frontend/public/src/containers/pages/CatalogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,21 +427,23 @@ export class CatalogPage extends React.Component<Props> {
*/
renderProgramCatalogCard(program: Program) {
return (
<a href={program.page.page_url} key={program.id}>
<div className="col catalog-item">
<div className="program-image-and-badge">
<img
src={program?.page?.feature_image_src}
key={program.id + program?.page?.feature_image_src}
alt=""
/>
<div className="program-type-badge">{program.program_type}</div>
</div>
<div className="catalog-item-description">
<div className="item-title">{program.title}</div>
<li>
<a href={program.page.page_url} key={program.id}>
<div className="col catalog-item">
<div className="program-image-and-badge">
<img
src={program?.page?.feature_image_src}
key={program.id + program?.page?.feature_image_src}
alt=""
/>
<div className="program-type-badge">{program.program_type}</div>
</div>
<div className="catalog-item-description">
<div className="item-title">{program.title}</div>
</div>
</div>
</div>
</a>
</a>
</li>
)
}

Expand Down

0 comments on commit 465da85

Please sign in to comment.