mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
* feat(INJI-245): dowload and view card via issuers Co-authored-by: Harsh Vardhan <harsh59v@gmail.com> * fix(INJI-245): remove vc from wallet Co-authored-by: Harsh Vardhan <harsh59v@gmail.com> * feat(INJI-245): pin card downloaded via eSignet * refactor(INJI-245): remove debug logs * refactor(INJI-245): rename vcItem related component to ExistingVcItem * refactor(INJI-245): add lock file modifications * refactor(INJI-245): add styles in purple theme for issuer related components * refactor(INJI-245): update VID for wallet binding usecase and issuer logo display in vc * refactor(INJI-245): remove duplicate loader component * refactor(INJI-245): remove unused props in vc details container --------- Co-authored-by: Harsh Vardhan <harsh59v@gmail.com> Co-authored-by: Vijay <94220135+vijay151096@users.noreply.github.com>
20 lines
646 B
TypeScript
20 lines
646 B
TypeScript
import React from 'react';
|
|
import {
|
|
EsignetMosipVCItemDetails,
|
|
EsignetMosipVCItemDetailsProps,
|
|
} from './EsignetMosipVCItem/EsignetMosipVCItemDetails';
|
|
import {VCMetadata} from '../../shared/VCMetadata';
|
|
import {
|
|
ExistingMosipVCItemDetails,
|
|
ExistingMosipVCItemDetailsProps,
|
|
} from './ExistingMosipVCItem/ExistingMosipVCItemDetails';
|
|
|
|
export const VcDetailsContainer: React.FC<
|
|
EsignetMosipVCItemDetailsProps | ExistingMosipVCItemDetailsProps
|
|
> = props => {
|
|
if (VCMetadata.fromVC(props.vc.vcMetadata).isFromOpenId4VCI()) {
|
|
return <EsignetMosipVCItemDetails {...props} />;
|
|
}
|
|
return <ExistingMosipVCItemDetails {...props} />;
|
|
};
|