@@ -3,8 +3,6 @@ import { AccessoryIcon, useForm } from 'indigo-react';
33import { identity } from 'lodash';
44import * as bip39 from 'bip39';
55
6−import InputSigil from 'components/InputSigil';
7−
86import { DEFAULT_HD_PATH } from 'lib/wallet';
97import {
108 validateNotEmpty,
@@ -19,35 +17,11 @@ import {
1917} from 'lib/validators';
2018import { prependSig } from 'lib/transformers';
2119
20+import InputSigil from 'components/InputSigil';
21+
2222const EXAMPLE_PRIVATE_KEY =
2323 '0xa44de2416ee6beb2f323fab48b432925c9785808d33a6ca6d7ba00b45e9370c3';
2424
25−// const RequiredInput = advancedInput({
26−// WrappedComponent: Input,
27−// validators: [validateNotEmpty],
28−// });
29−
30−// const NetworkKeyInput = advancedInput({
31−// WrappedComponent: Input,
32−// validators: [validateNotEmpty, validateNetworkKey],
33−// });
34−
35−// const NetworkSeedInput = advancedInput({
36−// WrappedComponent: Input,
37−// validators: [validateNotEmpty, validateNetworkSeed],
38−// });
39−
40−// const AddressInput = advancedInput({
41−// WrappedComponent: Input,
42−// validators: [validateEthereumAddress, validateNotEmpty],
43−// });
44−
45−// const GalaxyInput = advancedInput({
46−// WrappedComponent: Input,
47−// validators: [validateGalaxy, validateNotEmpty],
48−// transformers: [prependSig],
49−// });
50−
5125// pulls out the first input from a useForm() call
5226function useFirstOf({ inputs, setValue, ...rest }, mapper = identity) {
5327 // ask the mapper function for any values to overwrite