mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-08 17:24:30 +00:00
* Update account view routing * Temporarily add unicode character to translated strings for testing * Temporarily select add unicode to all untranslated strings * Format changes * Add all english translations for /account & /generate * Add the rest of the english translations * Add a few more missing translations * Update en translations * Get selectedLanguage from localstorage instead of redux sttate * Update snapshots * Add missing translation keys & Update translate functs & change variable prefix * translate all markdown strings & remove old translation strings * Update snapshot * Add a few more translation strs * Move raw strings being translated into json * All translation keys are now Uppercase * Fix up the last few translations * Update snapshot * Uppercase de translation strings * Bring back shapeshift logo on swap * Fix contracts tab translations * Fix a few more translations * Fix translations * remove debugging stuff * Update snapshots * Use react.fragment as markdown root renderer * Seperate markdown translations into their own function * Clean up translation functions * Clean up translation functions * Update snapshot * Fix some broken translation strings * Add prettier ignore file
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import PrintableWallet from 'components/PrintableWallet';
|
|
import { IV3Wallet } from 'ethereumjs-wallet';
|
|
import React from 'react';
|
|
import translate, { translateRaw } from 'translations';
|
|
import { stripHexPrefix } from 'libs/values';
|
|
import './PaperWallet.scss';
|
|
import Template from '../Template';
|
|
import { Input } from 'components/ui';
|
|
|
|
interface Props {
|
|
keystore: IV3Wallet;
|
|
privateKey: string;
|
|
continue(): void;
|
|
}
|
|
|
|
const PaperWallet: React.SFC<Props> = props => (
|
|
<Template>
|
|
<div className="GenPaper">
|
|
{/* Private Key */}
|
|
<label className="input-group GenPaper-private">
|
|
<h1 className="GenPaper-title">{translate('GEN_LABEL_5')}</h1>
|
|
<Input
|
|
value={stripHexPrefix(props.privateKey)}
|
|
aria-label={translateRaw('X_PRIVKEY')}
|
|
aria-describedby="x_PrivKeyDesc"
|
|
type="text"
|
|
readOnly={true}
|
|
/>
|
|
</label>
|
|
|
|
{/* Download Paper Wallet */}
|
|
<h2 className="GenPaper-title">{translate('X_PRINT')}</h2>
|
|
<div className="GenPaper-paper">
|
|
<PrintableWallet address={props.keystore.address} privateKey={props.privateKey} />
|
|
</div>
|
|
|
|
{/* Warning */}
|
|
<div className="GenPaper-warning">
|
|
<p>{translate('DL_WALLET_WARNING_1')}</p>
|
|
<p>{translate('DL_WALLET_WARNING_2')}</p>
|
|
<p>{translate('DL_WALLET_WARNING_3')}</p>
|
|
</div>
|
|
|
|
{/* Continue button */}
|
|
<button className="GenPaper-continue btn btn-default" onClick={props.continue}>
|
|
{translate('NAV_VIEWWALLET')} →
|
|
</button>
|
|
</div>
|
|
</Template>
|
|
);
|
|
|
|
export default PaperWallet;
|