-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from wwWallet/oid4vci/batch-issuance
OID4VCI: Batch issuance
- Loading branch information
Showing
21 changed files
with
313 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/components/Credentials/StatusRibbon.js → src/components/Credentials/ExpiredRibbon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
// StatusRibbon.js | ||
// ExpiredRibbon.js | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { CheckExpired } from '../../functions/CheckExpired'; | ||
|
||
const StatusRibbon = ({ parsedCredential }) => { | ||
const ExpiredRibbon = ({ parsedCredential }) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<> | ||
{parsedCredential && CheckExpired(parsedCredential.expiry_date) && | ||
<div className={`absolute bottom-0 right-0 text-white text-xs py-1 px-3 rounded-tl-lg border-t-2 border-l-2 border-gray-200 dark:border-gray-800 ${CheckExpired(parsedCredential.expiry_date) && 'bg-red-600'}`}> | ||
{t('statusRibbon.expired')} | ||
<div className={`absolute bottom-0 right-0 text-white text-xs py-1 px-3 rounded-tl-lg rounded-br-2xl border-t border-l border-white ${CheckExpired(parsedCredential.expirationDate) ? 'bg-red-600' : 'bg-green-500'}`}> | ||
{t('expiredRibbon.expired')} | ||
</div> | ||
} | ||
</> | ||
); | ||
}; | ||
|
||
export default StatusRibbon; | ||
export default ExpiredRibbon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// UsagesRibbon.js | ||
import React from 'react'; | ||
import { PiCardsBold } from "react-icons/pi"; | ||
|
||
const UsagesRibbon = ({ vcEntityInstances }) => { | ||
const zeroSigCount = vcEntityInstances?.filter(instance => instance.sigCount === 0).length || 0; | ||
|
||
return ( | ||
<> | ||
{vcEntityInstances && | ||
<div className={`z-50 absolute top-[-5px] font-semibold right-[-5px] text-white text-xs py-1 px-3 flex gap-1 items-center rounded-lg border-2 border-gray-100 dark:border-gray-800 ${zeroSigCount === 0 ? 'bg-orange-500' : 'bg-green-500'}`}> | ||
<PiCardsBold size={18} /> {zeroSigCount} | ||
</div> | ||
} | ||
</> | ||
); | ||
}; | ||
|
||
export default UsagesRibbon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.