mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-23 17:38:57 +00:00
818ad9fef5
* setup components, reducers, actions, and added routes * removed redux, using local state and ethereumjs-wallet * added validation and state reset * added visibility options and changed btn colors * updated isValidPrivKey and updated some components to stateless functional comp * componentize input and add placeholder message * removed cn from KeystoreDetails * adds isValidPrivate to buffer check and min pw length to 0 * remove packagelock to fix merge conflict * added utilities tab removed keystore tab * adds fixpkey in validators and uses it across two components * added checksum removal and btn css fixes * Fixed en.json formatting - also removed fixedPkey * Added unit tests for isValidPrivKey * add runtime checks and rename stripHexPrefix to strippedPrivateKey * switch back to stripHexPrefix * Add constant for n-factor * enforce 9 char minimum
17 lines
363 B
TypeScript
17 lines
363 B
TypeScript
import React from 'react';
|
|
|
|
interface Props {
|
|
content: React.ReactElement<any>;
|
|
title: string;
|
|
}
|
|
|
|
const RestoreKeystoreTemplate: React.SFC<Props> = ({ title, content }) => (
|
|
<div className="Tab-content">
|
|
<div className="Tab-content-pane text-center">
|
|
<h1>{title}</h1>
|
|
{content}
|
|
</div>
|
|
</div>
|
|
);
|
|
export default RestoreKeystoreTemplate;
|