mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 14:07:59 -05:00
[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user