[INJIMOB-1820 & 1858]: update logic to have share with selfie opton and Vc activation only for Mosip VC (#1585)

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
This commit is contained in:
Alka Prasad
2024-08-27 10:13:59 +05:30
committed by GitHub
parent ced3afeded
commit 2c9b0fc76c

View File

@@ -2,7 +2,7 @@ import {useTranslation} from 'react-i18next';
import {SvgImage} from './ui/svg';
import {useKebabPopUp} from './KebabPopUpController';
import {isActivationNeeded} from '../shared/openId4VCI/Utils';
import {VCShareFlowType} from '../shared/Utils';
import {isMosipVC, VCShareFlowType} from '../shared/Utils';
export const getKebabMenuOptions = props => {
const controller = useKebabPopUp(props);
@@ -68,7 +68,7 @@ export const getKebabMenuOptions = props => {
if (props.vcMetadata.isVerified) {
vcActionsList.splice(1, 0, share);
if (props.vcHasImage) {
if (isMosipVC(props.issuer)) {
vcActionsList.splice(2, 0, shareWithSelfieOption, VCActivationOption);
}
}