import React from 'react' import { FormInput } from '../FormInput' import { FormSelect } from '../FormSelect' import { inject, observer } from 'mobx-react' @inject('ballotStore') @observer export class BallotProxyMetadata extends React.Component { render() { const { ballotStore, networkBranch } = this.props let options = [ /*0*/ { value: '', label: '' }, /*1*/ { value: '1', label: ballotStore.ProxyBallotType[1] }, // KeysManager /*2*/ { value: '2', label: ballotStore.ProxyBallotType[2] }, // VotingToChangeKeys /*3*/ { value: '3', label: ballotStore.ProxyBallotType[3] }, // VotingToChangeMinThreshold /*4*/ { value: '4', label: ballotStore.ProxyBallotType[4] }, // VotingToChangeProxy /*5*/ { value: '5', label: ballotStore.ProxyBallotType[5] }, // BallotsStorage /*6*/ { value: '7', label: ballotStore.ProxyBallotType[7] }, // ValidatorMetadata /*7*/ { value: '8', label: ballotStore.ProxyBallotType[8] }, // ProxyStorage /*8*/ { value: '9', label: ballotStore.ProxyBallotType[9] } // RewardByBlock ] return (
ballotStore.changeBallotMetadata(e, 'proposedAddress', 'ballotProxy')} title="Proposed Address" value={ballotStore.ballotProxy.proposedAddress} /> ballotStore.changeBallotMetadata(e, 'contractType', 'ballotProxy')} options={options} title="Contract Type" value={ballotStore.ballotProxy.contractType} />
ballotStore.changeBallotMetadata(e, 'endTime')} title="Ballot End" type="datetime-local" value={ballotStore.endTime} />
) } }