1import React from 'react';
2import { Input } from 'indigo-react';
3import * as bip39 from 'bip39';
5import { validateNotEmpty, validateMnemonic } from 'lib/validators';
6import { DEFAULT_HD_PATH } from 'lib/wallet';
8const kExampleMnemonic = bip39.generateMnemonic();
10// const RequiredInput = advancedInput({
11// WrappedComponent: Input,
12// validators: [validateNotEmpty],
15// const NetworkKeyInput = advancedInput({
16// WrappedComponent: Input,
17// validators: [validateNotEmpty, validateNetworkKey],
20// const NetworkSeedInput = advancedInput({
21// WrappedComponent: Input,
22// validators: [validateNotEmpty, validateNetworkSeed],
25// const AddressInput = advancedInput({
26// WrappedComponent: Input,
27// validators: [validateEthereumAddress, validateNotEmpty],
30export function PassphraseInput(props) {
35 placeholder="Passphrase"
41export function MnemonicInput(props) {
46 placeholder={`e.g. ${kExampleMnemonic}`}
47 validators={[validateMnemonic, validateNotEmpty]}
53export function HdPathInput(props) {
58 placeholder={`${DEFAULT_HD_PATH}`}
59 validators={[validateNotEmpty]}
65// const GalaxyInput = advancedInput({
66// WrappedComponent: Input,
67// validators: [validateGalaxy, validateNotEmpty],
68// transformers: [prependSig],
71// const PointInput = advancedInput({
72// WrappedComponent: Input,
73// validators: [validatePoint, validateNotEmpty],
74// transformers: [prependSig],
77// const TicketInput = advancedInput({
78// WrappedComponent: Input,
79// validators: [validateTicket, validateNotEmpty],
80// transformers: [prependSig],
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list