mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
[INJIMOB-2823] remove display of keyType in VC detail view (#1770)
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
This commit is contained in:
@@ -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<VCItemDetailsProps> = props => {
|
||||
wellknownDisplayProperty,
|
||||
props,
|
||||
)}
|
||||
<VCItemField
|
||||
key={'keyTypeVcDetailView'}
|
||||
fieldName={KEY_TYPE_FIELD}
|
||||
fieldValue={props.keyType}
|
||||
testID={'keyTypeVcDetailView'}
|
||||
/>
|
||||
</Column>
|
||||
</>
|
||||
</ImageBackground>
|
||||
@@ -254,5 +246,4 @@ export interface VCItemDetailsProps {
|
||||
onBinding?: () => void;
|
||||
activeTab?: Number;
|
||||
vcHasImage: boolean;
|
||||
keyType: string;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -173,9 +173,6 @@ export const ViewVcModal: React.FC<ViewVcModalProps> = props => {
|
||||
walletBindingResponse={controller.walletBindingResponse}
|
||||
activeTab={props.activeTab}
|
||||
vcHasImage={profileImage !== undefined}
|
||||
keyType={
|
||||
controller.verifiableCredentialData.vcMetadata.downloadKeyType
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user