Skip to content

Commit

Permalink
fix: fixed incorrect bage and broken associated catalog column (#374)
Browse files Browse the repository at this point in the history
Co-authored-by: Maham Akif <[email protected]>
  • Loading branch information
mahamakifdar19 and Maham Akif authored Feb 9, 2024
1 parent da98d3e commit 975df0b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ const messages = defineMessages({
defaultMessage: 'Business',
description: 'Badge text for the `Business` catalog badge.',
},
'catalogSearchResults.subscriptionBadge': {
id: 'catalogSearchResults.subscriptionBadge',
defaultMessage: 'Subscription',
description: 'Badge text for the `Subscription` catalog badge.',
},
'catalogSearchResults.educationBadge': {
id: 'catalogSearchResults.educationBadge',
defaultMessage: 'Education',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const CatalogBadges = ({ row }) => {
process.env.EDX_FOR_BUSINESS_TITLE,
) && (
<Badge variant="secondary" className="business-catalog padded-catalog">
{intl.formatMessage(messages['catalogSearchResults.businessBadge'])}
{intl.formatMessage(messages['catalogSearchResults.subscriptionBadge'])}
</Badge>
)}
{!features.CONSOLIDATE_SUBS_CATALOG
Expand Down
2 changes: 1 addition & 1 deletion src/components/programCard/ProgramCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ProgramCard = ({ intl, onClick, original }) => {
)}
{businessCatalogRequested && (
<Badge variant="secondary" className="padded-catalog">
{intl.formatMessage(messages['ProgramCard.businessBadge'])}
{intl.formatMessage(messages['ProgramCard.subscriptionBadge'])}
</Badge>
)}
{!features.CONSOLIDATE_SUBS_CATALOG
Expand Down
5 changes: 5 additions & 0 deletions src/components/programCard/ProgramCard.messages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ const messages = defineMessages({
defaultMessage: 'Business',
description: 'Badge text for the `Business` catalog badge.',
},
'ProgramCard.subscriptionBadge': {
id: 'ProgramCard.subscriptionBadge',
defaultMessage: 'Subscription',
description: 'Badge text for the `Subscription` catalog badge.',
},
'ProgramCard.educationBadge': {
id: 'ProgramCard.educationBadge',
defaultMessage: 'Education',
Expand Down

0 comments on commit 975df0b

Please sign in to comment.