Skip to content

Commit

Permalink
feat: Add Beta label to videos in the learning type facet (#409)
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 Sep 9, 2024
1 parent 339b7b4 commit 776e35e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/catalog-search/src/LearningTypeRadioFacet.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Dropdown, Input } from '@openedx/paragon';
import { Dropdown, Input, Badge } from '@openedx/paragon';
import { FormattedMessage } from '@edx/frontend-platform/i18n';
import { SearchContext } from './SearchContext';
import {
Expand Down Expand Up @@ -131,6 +131,15 @@ const LearningTypeRadioFacet = ({ enablePathways }) => {
description="Title for the learning type facet filter to return videos only"
/>
</span>
<Badge className="ml-2" variant="info">
<span>
<FormattedMessage
id="search.facetFilters.learningType.videos.betaBadge"
defaultMessage="Beta"
description="Beta label that indicates a new learning type, videos, has been added"
/>
</span>
</Badge>
</Dropdown.Item>
)}
</Dropdown.Menu>
Expand Down

0 comments on commit 776e35e

Please sign in to comment.