Fix ts-ignore for Trans component (#126)

This commit is contained in:
Jaco Greeff 2018-07-05 15:25:15 +02:00 committed by GitHub
parent dd3ee80349
commit 6538e71a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -104,8 +104,7 @@ class Unlock extends React.PureComponent<Props, State> {
<div className='toolbox--Unlock-Content' key='content'>
<div className='expanded'>
<p>
// @ts-ignore ok, Trans def seems wrong?
<Trans i18nkey='unlock.info'>
<Trans i18nKey='unlock.info'>
You are about to unlock your account <span className='code'>{address}</span> to allow for the signing of messages.
</Trans>
</p>

View File

@ -62,8 +62,7 @@ class Extrinsic extends React.PureComponent<Props> {
<div className='ui--signer-Signer-Decoded'>
<div className='expanded'>
<p>
// @ts-ignore weird... the attribute doesn't exist, check base definitions
<Trans i18nkey='decoded.short'>
<Trans i18nKey='decoded.short'>
You are about to sign a message from <span className='code'>{from}</span> calling <span className='code'>{section}.{method}</span> with an index of <span className='code'>{nonce.toString()}</span>
</Trans>
</p>