Skip to content

Commit

Permalink
refactor: update draft status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Mar 19, 2024
1 parent a75dfbd commit ecf01cd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/course-outline/utils.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
CheckCircle as CheckCircleIcon,
Lock as LockIcon,
EditOutline as EditOutlineIcon,
} from '@openedx/paragon/icons';

import DraftIcon from '../generic/DraftIcon';
import { ITEM_BADGE_STATUS, VIDEO_SHARING_OPTIONS } from './constants';
import { VisibilityTypes } from '../data/constants';

Expand Down Expand Up @@ -69,12 +69,12 @@ const getItemStatusBadgeContent = (status, messages, intl) => {
case ITEM_BADGE_STATUS.unpublishedChanges:
return {
badgeTitle: intl.formatMessage(messages.statusBadgeUnpublishedChanges),
badgeIcon: EditOutlineIcon,
badgeIcon: DraftIcon,
};
case ITEM_BADGE_STATUS.draft:
return {
badgeTitle: intl.formatMessage(messages.statusBadgeDraft),
badgeIcon: EditOutlineIcon,
badgeIcon: DraftIcon,
};
default:
return {
Expand Down
18 changes: 18 additions & 0 deletions src/generic/DraftIcon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';

const DraftIcon = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={24}
height={24}
viewBox="0 -960 960 960"
{...props}
>
<path
d="M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"
fill="currentColor"
/>
</svg>
);

export default DraftIcon;

0 comments on commit ecf01cd

Please sign in to comment.