mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-06-20 22:11:03 +00:00
refactor: update identicon theme mapping and Ledger text to Pezkuwi
- Update Identicon.tsx to use pezkuwi theme instead of jdenticon fallback - Update Ledger app references from Polkadot to Pezkuwi - Update translation file for Ledger text
This commit is contained in:
@@ -70,7 +70,7 @@ function Request ({ className, metaId, request, url }: Props): React.ReactElemen
|
||||
</Table>
|
||||
<div className='requestInfo'>
|
||||
<Warning className='requestWarning'>
|
||||
{t('This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger\'s Generic Polkadot App.')}
|
||||
{t('This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger\'s Generic Pezkuwi App.')}
|
||||
</Warning>
|
||||
<Button
|
||||
className='btnAccept'
|
||||
|
||||
@@ -37,7 +37,7 @@ interface Props {
|
||||
function getMetadataProof (chain: Chain, payload: SignerPayloadJSON) {
|
||||
const m = chain.definition.rawMetadata;
|
||||
|
||||
assert(m, 'To sign with Ledger\'s Polkadot Generic App, the metadata must be present in the extension.');
|
||||
assert(m, 'To sign with Ledger\'s Pezkuwi Generic App, the metadata must be present in the extension.');
|
||||
|
||||
const merkleizedMetadata = merkleizeMetadata(m, {
|
||||
base58Prefix: chain.ss58Format,
|
||||
|
||||
@@ -19,10 +19,12 @@ interface Props {
|
||||
}
|
||||
|
||||
function Identicon ({ className, iconTheme, onCopy, prefix, value }: Props): React.ReactElement<Props> {
|
||||
// Use jdenticon as default for Pezkuwi
|
||||
const theme = iconTheme === 'polkadot' || iconTheme === 'substrate' || iconTheme === 'pezkuwi' || !iconTheme
|
||||
// Map themes: pezkuwi circle identicon, bizinikiwi uses jdenticon
|
||||
const theme = iconTheme === 'bizinikiwi' || !iconTheme
|
||||
? 'jdenticon'
|
||||
: iconTheme;
|
||||
: iconTheme === 'pezkuwi' || iconTheme === 'polkadot' || iconTheme === 'substrate'
|
||||
? 'pezkuwi'
|
||||
: iconTheme;
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
"App \"{{network}}\" does not seem to be open": "",
|
||||
"Ledger error: {{errorMessage}}": "",
|
||||
"assetId": "",
|
||||
"This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger's Generic Polkadot App.": "",
|
||||
"This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger's Generic Pezkuwi App.": "",
|
||||
"No metadata found for this chain. You must upload the metadata to the extension in order to use Ledger.": "",
|
||||
"This network is not available, please report an issue to update the known chains": "",
|
||||
"Ledger App": "",
|
||||
|
||||
Reference in New Issue
Block a user