From 033b4d7c0c520a49d5f7d902c6f1282671976fb3 Mon Sep 17 00:00:00 2001 From: abhip2565 Date: Fri, 31 Jan 2025 12:07:34 +0530 Subject: [PATCH] [INJIMOB-2823] remove display of keyType in VC detail view (#1770) Signed-off-by: Abhishek Paul --- components/VC/Views/VCDetailView.tsx | 9 --------- components/VC/common/VCUtils.tsx | 1 - screens/Home/ViewVcModal.tsx | 3 --- 3 files changed, 13 deletions(-) diff --git a/components/VC/Views/VCDetailView.tsx b/components/VC/Views/VCDetailView.tsx index 3ac12b67..38d02523 100644 --- a/components/VC/Views/VCDetailView.tsx +++ b/components/VC/Views/VCDetailView.tsx @@ -17,12 +17,10 @@ import { BOTTOM_SECTION_FIELDS_WITH_DETAILED_ADDRESS_FIELDS, DETAIL_VIEW_BOTTOM_SECTION_FIELDS, Display, - KEY_TYPE_FIELD, fieldItemIterator, } from '../common/VCUtils'; import {ProfileIcon} from '../../ProfileIcon'; import {VCFormat} from '../../../shared/VCFormat'; -import {VCItemField} from '../common/VCItemField'; const getProfileImage = (face: any) => { if (face) { @@ -147,12 +145,6 @@ export const VCDetailView: React.FC = props => { wellknownDisplayProperty, props, )} - @@ -254,5 +246,4 @@ export interface VCItemDetailsProps { onBinding?: () => void; activeTab?: Number; vcHasImage: boolean; - keyType: string; } diff --git a/components/VC/common/VCUtils.tsx b/components/VC/common/VCUtils.tsx index 7992455a..70b00732 100644 --- a/components/VC/common/VCUtils.tsx +++ b/components/VC/common/VCUtils.tsx @@ -45,7 +45,6 @@ export const DETAIL_VIEW_BOTTOM_SECTION_FIELDS = [ 'credentialRegistry', ]; -export const KEY_TYPE_FIELD = 'keytype'; export const BOTTOM_SECTION_FIELDS_WITH_DETAILED_ADDRESS_FIELDS = [ ...getAddressFields(), 'email', diff --git a/screens/Home/ViewVcModal.tsx b/screens/Home/ViewVcModal.tsx index b8f3daba..d2a3dc12 100644 --- a/screens/Home/ViewVcModal.tsx +++ b/screens/Home/ViewVcModal.tsx @@ -173,9 +173,6 @@ export const ViewVcModal: React.FC = props => { walletBindingResponse={controller.walletBindingResponse} activeTab={props.activeTab} vcHasImage={profileImage !== undefined} - keyType={ - controller.verifiableCredentialData.vcMetadata.downloadKeyType - } /> )}