mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
rebase changes and merge release 0.14.x to injimob-2005-new-theme-change (#1644)
[INJIMOB-2051] fix Vc background not getting rendered (#1626) [INJIMOB-2073] change wellknown api from /.well-known to /well-known-proxy (#1630) Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com> Co-authored-by: anup-nehe <117707464+anup-nehe@users.noreply.github.com>
This commit is contained in:
@@ -99,7 +99,10 @@ export const getFieldName = (field: string, wellknown: any) => {
|
||||
};
|
||||
|
||||
export const getBackgroundColour = (wellknown: any) => {
|
||||
return wellknown?.display[0]?.background_color ?? Theme.Colors.textValue;
|
||||
return {
|
||||
backgroundColor:
|
||||
wellknown?.display[0]?.background_color ?? Theme.Colors.textValue,
|
||||
};
|
||||
};
|
||||
|
||||
export const getBackgroundImage = (wellknown: any, defaultBackground: any) => {
|
||||
|
||||
@@ -30,7 +30,7 @@ export const API_URLS: ApiUrls = {
|
||||
issuerWellknownConfig: {
|
||||
method: 'GET',
|
||||
buildURL: (issuerId: string): `/${string}` =>
|
||||
`/v1/mimoto/issuers/${issuerId}/.well-known`,
|
||||
`/v1/mimoto/issuers/${issuerId}/well-known-proxy`,
|
||||
},
|
||||
allProperties: {
|
||||
method: 'GET',
|
||||
|
||||
@@ -96,7 +96,7 @@ export const updateCredentialInformation = (
|
||||
return {
|
||||
verifiableCredential: {
|
||||
...credential,
|
||||
wellKnown: context.selectedIssuer['.well-known'],
|
||||
wellKnown: context.selectedIssuer['wellknown_endpoint'],
|
||||
credentialTypes: credential.credential.type ?? ['VerifiableCredential'],
|
||||
issuerLogo: getDisplayObjectForCurrentLanguage(
|
||||
context.selectedIssuer.display,
|
||||
|
||||
Reference in New Issue
Block a user