fix(frontend): show a badge on requestcard for partially available status

pull/183/head
sct 4 years ago
parent b26a2347e7
commit 59056c44f9

@ -86,6 +86,9 @@ const RequestCard: React.FC<RequestCardProps> = ({ request }) => {
{requestData.media.status === MediaStatus.AVAILABLE && ( {requestData.media.status === MediaStatus.AVAILABLE && (
<Badge badgeType="success">Available</Badge> <Badge badgeType="success">Available</Badge>
)} )}
{requestData.media.status === MediaStatus.PARTIALLY_AVAILABLE && (
<Badge badgeType="success">Partially Available</Badge>
)}
{requestData.media.status === MediaStatus.PROCESSING && ( {requestData.media.status === MediaStatus.PROCESSING && (
<Badge badgeType="danger">Unavailable</Badge> <Badge badgeType="danger">Unavailable</Badge>
)} )}

Loading…
Cancel
Save