add Confirm Gift screen for simpler confirmation

This commit is contained in:
2024-06-20 20:52:26 -06:00
parent 79d93994c2
commit 230773a917
11 changed files with 992 additions and 34 deletions

View File

@@ -70,7 +70,7 @@ export const isGlobalUri = (uri: string) => {
return uri && uri.match(new RegExp(/^[A-Za-z][A-Za-z0-9+.-]+:/));
};
export const giveIsConfirmable = (veriClaim: GenericCredWrapper) => {
export const isGiveAction = (veriClaim: GenericCredWrapper) => {
return veriClaim.claimType === "GiveAction";
};
@@ -91,7 +91,7 @@ export const isGiveRecordTheUserCanConfirm = (
confirmerIdList: string[] = [],
) => {
return (
giveIsConfirmable(veriClaim) &&
isGiveAction(veriClaim) &&
!confirmerIdList.includes(activeDid) &&
veriClaim.issuer !== activeDid &&
!containsHiddenDid(veriClaim.claim)