diff --git a/common/components/WalletDecrypt/components/DeprecationWarning.tsx b/common/components/WalletDecrypt/components/DeprecationWarning.tsx new file mode 100644 index 00000000..82eab917 --- /dev/null +++ b/common/components/WalletDecrypt/components/DeprecationWarning.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import translate from 'translations'; + +const DeprecationWarning: React.SFC<{}> = () => { + if (process.env.BUILD_DOWNLOADABLE) { + return null; + } + + return
{translate('INSECURE_WALLET_DEPRECATION')}
; +}; + +export default DeprecationWarning; diff --git a/common/components/WalletDecrypt/components/Keystore.tsx b/common/components/WalletDecrypt/components/Keystore.tsx index 952eb0ab..7fb12414 100644 --- a/common/components/WalletDecrypt/components/Keystore.tsx +++ b/common/components/WalletDecrypt/components/Keystore.tsx @@ -4,6 +4,7 @@ import translate, { translateRaw } from 'translations'; import Spinner from 'components/ui/Spinner'; import { TShowNotification } from 'actions/notifications'; import { Input } from 'components/ui'; +import DeprecationWarning from './DeprecationWarning'; export interface KeystoreValue { file: string; @@ -44,6 +45,7 @@ export class KeystoreDecrypt extends PureComponent { return (
+
{ const isValidMnemonic = validateMnemonic(formattedPhrase); return ( -
+ +
{ onConfirmAddress={this.handleUnlock} onPathChange={this.handlePathChange} /> -
+ ); } diff --git a/common/components/WalletDecrypt/components/PrivateKey.tsx b/common/components/WalletDecrypt/components/PrivateKey.tsx index 425edb3c..3bef3636 100644 --- a/common/components/WalletDecrypt/components/PrivateKey.tsx +++ b/common/components/WalletDecrypt/components/PrivateKey.tsx @@ -4,6 +4,7 @@ import React, { PureComponent } from 'react'; import translate, { translateRaw } from 'translations'; import { TogglablePassword } from 'components'; import { Input } from 'components/ui'; +import DeprecationWarning from './DeprecationWarning'; export interface PrivateKeyValue { key: string; @@ -54,6 +55,7 @@ export class PrivateKeyDecrypt extends PureComponent { return ( +