[INJIMOB-2823] remove display of keyType in VC detail view (#1935)

Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
This commit is contained in:
abhip2565
2025-05-16 15:08:25 +05:30
committed by GitHub
parent a939b0e28f
commit 4f6595694c
3 changed files with 11 additions and 24 deletions

View File

@@ -17,7 +17,6 @@ import {
BOTTOM_SECTION_FIELDS_WITH_DETAILED_ADDRESS_FIELDS,
DETAIL_VIEW_BOTTOM_SECTION_FIELDS,
Display,
KEY_TYPE_FIELD,
fieldItemIterator,
} from '../common/VCUtils';
import {VCFormat} from '../../../shared/VCFormat';
@@ -30,12 +29,12 @@ const getProfileImage = (face: any) => {
<Image source={{uri: face}} style={Theme.Styles.detailedViewImage} />
);
}
return (
<></>
);
return <></>;
};
export const VCDetailView: React.FC<VCItemDetailsProps> = (props: VCItemDetailsProps) => {
export const VCDetailView: React.FC<VCItemDetailsProps> = (
props: VCItemDetailsProps,
) => {
const {t} = useTranslation('VcDetails');
const logo = props.verifiableCredentialData.issuerLogo;
const face = props.verifiableCredentialData.face;
@@ -86,9 +85,11 @@ export const VCDetailView: React.FC<VCItemDetailsProps> = (props: VCItemDetailsP
Theme.Styles.openCardBgContainer,
wellknownDisplayProperty.getBackgroundColor(),
]}
source={wellknownDisplayProperty.getBackgroundImage(
Theme.OpenCard,
) as ImageBackgroundProps}>
source={
wellknownDisplayProperty.getBackgroundImage(
Theme.OpenCard,
) as ImageBackgroundProps
}>
<Row padding="14 14 0 14" margin="0 0 0 0">
<Column crossAlign="center">
{getProfileImage(face)}
@@ -145,12 +146,6 @@ export const VCDetailView: React.FC<VCItemDetailsProps> = (props: VCItemDetailsP
wellknownDisplayProperty,
props,
)}
<VCItemField
key={'keyTypeVcDetailView'}
fieldName={KEY_TYPE_FIELD}
fieldValue={props.keyType}
testID={'keyTypeVcDetailView'}
/>
</Column>
</>
</ImageBackground>
@@ -252,5 +247,4 @@ export interface VCItemDetailsProps {
onBinding?: () => void;
activeTab?: Number;
vcHasImage: boolean;
keyType: string;
}

View File

@@ -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',