Skip to content

Commit 100564a

Browse files
committed
Remove status ribbon for valid VCs
1 parent 1ca0e32 commit 100564a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/Credentials/StatusRibbon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const StatusRibbon = ({ expDate }) => {
1212
};
1313

1414
return (
15-
<div className={`absolute bottom-0 right-0 text-white text-xs py-1 px-3 rounded-tl-lg border-t border-l border-white ${CheckExpired(expDate) ? 'bg-red-500' : 'bg-green-500'}`}>
16-
{CheckExpired(expDate) ? `${t('statusRibbon.expired')}` : `${t('statusRibbon.active')}`}
15+
CheckExpired(expDate) && <div className={`absolute bottom-0 right-0 text-white text-xs py-1 px-3 rounded-tl-lg border-t border-l border-white ${CheckExpired(expDate) ? 'bg-red-500' : 'bg-green-500'}`}>
16+
{ t('statusRibbon.expired') }
1717
</div>
1818
);
1919
};

src/locales/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@
187187
"poweredBy": "Powered by <docLinkWalletGithub>wwWallet</docLinkWalletGithub>"
188188
},
189189
"statusRibbon": {
190-
"active": "Active",
191190
"expired": "Expired"
192191
}
193192
}

0 commit comments

Comments
 (0)