Skip to content

Commit

Permalink
Merge pull request #22 from rarimo/feature/kleros
Browse files Browse the repository at this point in the history
Kleros provider
  • Loading branch information
ardier16 authored Dec 20, 2023
2 parents 7f683c4 + ba1abfd commit 33469a1
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
45 changes: 45 additions & 0 deletions src/assets/icons/kleros-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/enums/icon-names.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ export enum IconNames {
GitCoin = 'gitcoin-passport',
Unstoppable = 'unstoppable-domains',
WorldCoin = 'worldcoin',
Kleros = 'kleros',
}
1 change: 1 addition & 0 deletions src/enums/kyc-providers.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export enum SupportedKycProvider {
GITCOIN = 'GitCoin',
UNSTOPPABLEDOMAINS = 'Unstoppable',
WORLDCOIN = 'WorldCoin',
KLEROS = 'Kleros',
}
4 changes: 3 additions & 1 deletion src/localization/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"WorldCoin": "Worldcoin",
"Unstoppable": "Unstoppable Domains",
"GitCoin": "Gitcoin Passport",
"Civic": "Civic"
"Civic": "Civic",
"Kleros": "Kleros",
"Unknown": "Unknown"

},
"mobile-device-message": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const CredentialsTile: FC<Props> = ({ credential }) => {
GitcoinPassport: SupportedKycProvider.GITCOIN,
UnstoppableDomains: SupportedKycProvider.UNSTOPPABLEDOMAINS,
Worldcoin: SupportedKycProvider.WORLDCOIN,
Kleros: SupportedKycProvider.KLEROS,
}[provider]
},
[credential],
Expand Down Expand Up @@ -67,10 +68,13 @@ const CredentialsTile: FC<Props> = ({ credential }) => {
width={16}
height={16}
className='credential-tile__footer-provider-icon'
name={IconNames[detectProviderFromVC(credential) as IconNamesType]}
name={
IconNames[detectProviderFromVC(credential) as IconNamesType] ??
IconNames.Proof
}
/>
<p className='credential-tile__footer-provider-name'>
{t(`tiles.${detectProviderFromVC(credential)}`)}
{t(`tiles.${detectProviderFromVC(credential) ?? 'Unknown'}`)}
</p>
</div>
</div>
Expand Down

0 comments on commit 33469a1

Please sign in to comment.