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:
abhip2565
2024-10-17 18:26:51 +05:30
committed by GitHub
parent 1d7e12c824
commit 8995c8cbed
3 changed files with 6 additions and 3 deletions

View File

@@ -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) => {

View File

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

View File

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