Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Aug 16, 2024
1 parent 00b4978 commit 49c0cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 93 deletions.
14 changes: 2 additions & 12 deletions packages/web-wallet/pages/contacts/show/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {CredentialRole, IBasicCredentialLocaleBranding, Party} from '@sphereon/s
import {OpenID4VCIClient} from '@sphereon/oid4vci-client'
import {CredentialStatus, TabViewRoute} from '@sphereon/ui-components.core'
import {ContactViewItem, SSITabView} from '@sphereon/ui-components.ssi-react'
import {credentialLocaleBrandingFrom} from '@sphereon/ssi-sdk.oid4vci-holder/dist/agent/OIDC4VCIBrandingMapper'
import PageHeaderBar from '@components/bars/PageHeaderBar'
import {staticPropsWithSST} from '@/src/i18n/server'
import {
Expand All @@ -13,7 +14,6 @@ import {
CredentialsSupportedDisplay
} from '@sphereon/oid4vci-common'
import agent from "@agent";
import { credentialLocaleBrandingFrom } from '@/src/OIDC4VCIBrandingMapper'
import CredentialCatalogView from "@components/views/CredentialCatalogView";
import style from './index.module.css'
import {CredentialCatalogItem} from '@typings';
Expand Down Expand Up @@ -392,20 +392,10 @@ const ShowContactDetails: FC = (): ReactElement => {
),
)

// const defaultCredentialType = 'VerifiableCredential'
// const credentialTypes: Array<string> = ('types' in credentialsConfigSupported // TODO credentialsConfigSupported.types is deprecated
// ? (credentialsConfigSupported.types as string[])
// : 'credential_definition' in credentialsConfigSupported
// ? credentialsConfigSupported.credential_definition.type
// : [defaultCredentialType]) ?? [configId]

//const filteredCredentialTypes = credentialTypes.filter((type: string): boolean => type !== defaultCredentialType)
credentialBranding[configId] = localeBranding // TODO for now taking the first type
credentialBranding[configId] = localeBranding
}),
)

// console.log(`BRANDING: ${JSON.stringify(credentialBranding)}`)

return credentialBranding
}

Expand Down
81 changes: 0 additions & 81 deletions packages/web-wallet/src/OIDC4VCIBrandingMapper.ts

This file was deleted.

0 comments on commit 49c0cf5

Please sign in to comment.