* [#897] signer.signRaw signing doesn't work with Ledger Nano X * [#897] signer.signRaw signing doesn't work with Ledger Nano X * [#897] Update quotes format * [#897] Linter autofix
This commit is contained in:
parent
629b805cb0
commit
0eb471f5da
@ -11,7 +11,8 @@ import React, { useCallback, useContext, useEffect, useState } from 'react';
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { AccountContext, ActionContext, Address, VerticalSpace } from '../../../components';
|
||||
import { AccountContext, ActionContext, Address, VerticalSpace, Warning } from '../../../components';
|
||||
import { useTranslation } from '../../../components/translate';
|
||||
import { approveSignSignature } from '../../../messaging';
|
||||
import Bytes from '../Bytes';
|
||||
import Extrinsic from '../Extrinsic';
|
||||
@ -48,6 +49,7 @@ export default function Request ({ account: { accountIndex, addressOffset, isExt
|
||||
const [{ hexBytes, payload }, setData] = useState<Data>({ hexBytes: null, payload: null });
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const { accounts } = useContext(AccountContext);
|
||||
const { t } = useTranslation();
|
||||
|
||||
useEffect((): void => {
|
||||
const payload = request.payload;
|
||||
@ -160,6 +162,10 @@ export default function Request ({ account: { accountIndex, addressOffset, isExt
|
||||
)
|
||||
}
|
||||
<VerticalSpace />
|
||||
{isHardware && <>
|
||||
<Warning>{t('Message signing is not supported for hardware wallets.')}</Warning>
|
||||
<VerticalSpace />
|
||||
</>}
|
||||
<SignArea
|
||||
buttonText={buttonText}
|
||||
error={error}
|
||||
|
||||
@ -160,5 +160,6 @@
|
||||
"password for encrypting all accounts": "",
|
||||
"I want to export all my accounts": "",
|
||||
"Notifications": "",
|
||||
"Search by name or network...": ""
|
||||
"Search by name or network...": "",
|
||||
"Message signing is not supported for hardware wallets.": ""
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user