@@ -3,8 +3,6 @@ import { AccessoryIcon, useForm } from 'indigo-react';
3import { identity } from 'lodash';
3import { identity } from 'lodash';
4import * as bip39 from 'bip39';
4import * as bip39 from 'bip39';
6−import InputSigil from 'components/InputSigil';
8import { DEFAULT_HD_PATH } from 'lib/wallet';
6import { DEFAULT_HD_PATH } from 'lib/wallet';
10 validateNotEmpty,
8 validateNotEmpty,
@@ -19,35 +17,11 @@ import {
19} from 'lib/validators';
17} from 'lib/validators';
20import { prependSig } from 'lib/transformers';
18import { prependSig } from 'lib/transformers';
20+import InputSigil from 'components/InputSigil';
22const EXAMPLE_PRIVATE_KEY =
22const EXAMPLE_PRIVATE_KEY =
23 '0xa44de2416ee6beb2f323fab48b432925c9785808d33a6ca6d7ba00b45e9370c3';
23 '0xa44de2416ee6beb2f323fab48b432925c9785808d33a6ca6d7ba00b45e9370c3';
25−// const RequiredInput = advancedInput({
26−// WrappedComponent: Input,
27−// validators: [validateNotEmpty],
30−// const NetworkKeyInput = advancedInput({
31−// WrappedComponent: Input,
32−// validators: [validateNotEmpty, validateNetworkKey],
35−// const NetworkSeedInput = advancedInput({
36−// WrappedComponent: Input,
37−// validators: [validateNotEmpty, validateNetworkSeed],
40−// const AddressInput = advancedInput({
41−// WrappedComponent: Input,
42−// validators: [validateEthereumAddress, validateNotEmpty],
45−// const GalaxyInput = advancedInput({
46−// WrappedComponent: Input,
47−// validators: [validateGalaxy, validateNotEmpty],
48−// transformers: [prependSig],
51// pulls out the first input from a useForm() call
25// pulls out the first input from a useForm() call
52function useFirstOf({ inputs, setValue, ...rest }, mapper = identity) {
26function useFirstOf({ inputs, setValue, ...rest }, mapper = identity) {
53 // ask the mapper function for any values to overwrite
27 // ask the mapper function for any values to overwrite