3 simpleValidatorWrapper,
6 validateEthereumAddress,
13} from '../../lib/validators';
15import { prependSig } from '../../lib/transformers';
18import Button from './Button';
19import UploadButton from './UploadButton';
20// import Checkbox from './Checkbox';
21import CheckboxButton from './CheckboxButton';
22import Anchor from './Anchor';
23// import ToggleButton from './ToggleButton';
26import Form from './Form';
27import Label from './Label';
28import InnerLabel from './InnerLabel';
29import InputCaption from './InputCaption';
30import Input from './Input';
31import Textarea from './Textarea';
32import advancedInput from './advancedInput';
35import DropdownItem from './DropdownItem';
36import DropdownDivider from './DropdownDivider';
37import InnerLabelDropdown from './InnerLabelDropdown';
40import HorizontalSelector from './HorizontalSelector';
43import Breadcrumb from './Breadcrumb';
44import BreadcrumbItem from './BreadcrumbItem';
47import Col from './Col';
48import Row from './Row';
49// import FlexRow from './FlexRow';
50// import FlexCol from './FlexCol';
51import Spacing from './Spacing';
59import Code from './Code';
60import Warning from './Warning';
63import ValidatedSigil from './ValidatedSigil';
64import ValidatedBlockie from './ValidatedBlockie';
65import ShowBlockie from './ShowBlockie';
67// HOC validated form components
69const RequiredInput = advancedInput({
70 WrappedComponent: Input,
71 validators: [validateNotEmpty],
74const NetworkKeyInput = advancedInput({
75 WrappedComponent: Input,
76 validators: [validateNotEmpty, validateNetworkKey],
79const NetworkSeedInput = advancedInput({
80 WrappedComponent: Input,
81 validators: [validateNotEmpty, validateNetworkSeed],
84const AddressInput = advancedInput({
85 WrappedComponent: Input,
86 validators: [validateEthereumAddress, validateNotEmpty],
89const MnemonicInput = advancedInput({
90 WrappedComponent: Textarea,
91 validators: [validateMnemonic, validateNotEmpty],
94const GalaxyInput = advancedInput({
95 WrappedComponent: Input,
96 validators: [validateGalaxy, validateNotEmpty],
97 transformers: [prependSig],
100const PointInput = advancedInput({
101 WrappedComponent: Input,
102 validators: [validatePoint, validateNotEmpty],
103 transformers: [prependSig],
106const TicketInput = advancedInput({
107 WrappedComponent: Input,
108 validators: [validateTicket, validateNotEmpty],
109 transformers: [prependSig],
112const VerifyTicketInput = matchingTicket =>
114 WrappedComponent: Input,
119 // TODO: This should be in /lib/validators, but we'd need a way for
120 // validators to compare against dynamic values
122 simpleValidatorWrapper({
124 validator: d => d === matchingTicket,
125 errorMessage: 'This does not match the provided master ticket',
128 transformers: [prependSig],
131const ShardInput = advancedInput({
132 WrappedComponent: Input,
133 validators: [validateShard],
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