1import React from 'react';
2import { Grid, ToggleInput, ErrorText } from 'indigo-react';
3import { GenerateButton, ForwardButton } from './Buttons';
4import { useCheckboxInput } from 'lib/useInputs';
5import Blinky from './Blinky';
7export default function InlineEthereumTransaction({
22 const [configureInput, { data: configurationOpen }] = useCheckboxInput({
24 label: 'Configure Transaction',
25 disabled: signed || broadcasted || confirmed,
29 viewSignedTransaction,
30 { data: signedTransactionOpen },
31 ] = useCheckboxInput({
33 label: 'View Signed Transaction',
37 const renderButton = () => {
39 // some sort of next button or nothing at all
41 } else if (broadcasted) {
49 accessory={<Blinky />}>
50 Sending Transaction...
60 onClick={() => broadcast()}>
69 onClick={generateAndSign}
71 accessory={!canSign && initializing ? <Blinky /> : undefined}>
72 Generate & Sign Transaction
79 <Grid className={className}>
83 <Grid.Item full as={ErrorText} className="mt1">
87 <Grid.Item full as={ToggleInput} {...configureInput} />
89 {!broadcasted && !confirmed && (
90 <Grid.Item full as={ToggleInput} {...viewSignedTransaction} />
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