Skip to content

Commit

Permalink
fix: use imported fallback img from @edx/brand (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Jan 6, 2023
1 parent b9c654a commit de4e10e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"extends @edx/browserslist-config"
],
"dependencies": {
"@edx/brand": "npm:@edx/brand-openedx@1.1.0",
"@edx/brand": "npm:@edx/brand-openedx@1.2.0",
"@edx/frontend-component-footer": "11.6.0",
"@edx/frontend-enterprise-catalog-search": "3.1.5",
"@edx/frontend-enterprise-hotjar": "1.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useHistory } from 'react-router-dom';
import { AppContext } from '@edx/frontend-platform/react';
import { Card } from '@edx/paragon';
import { sendEnterpriseTrackEvent } from '@edx/frontend-enterprise-utils';
import cardImageCapFallbackSrc from '@edx/brand/paragon/images/card-imagecap-fallback.png';

import { useHighlightedContentCardData } from './data';

Expand Down Expand Up @@ -61,6 +62,7 @@ const HighlightedContentCard = ({
>
<Card.ImageCap
src={cardImageUrl}
fallbackSrc={cardImageCapFallbackSrc}
srcAlt=""
logoSrc={authoringOrganizations?.logoImageUrl}
logoAlt={`${authoringOrganizations?.content}'s logo`}
Expand Down

0 comments on commit de4e10e

Please sign in to comment.