Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
import React, { Component } from 'react';
import { Field, Form } from 'react-final-form';
import { Form as FetherForm, Header } from 'fether-ui';
import { inject, observer } from 'mobx-react';
Axel Chalon
committed
import { Link, Redirect, withRouter } from 'react-router-dom';
import { consumeTokens } from '../../contexts/TokensContext.js';
import TokenBalance from '../../Tokens/TokensList/TokenBalance';
Axel Chalon
committed
@withRouter
@consumeTokens
@withProps(({ match: { params: { tokenAddress } }, tokens }) => ({
token: tokens[tokenAddress]
const { accountAddress, history, sendStore, token } = this.props;
.then(() =>
history.push(`/tokens/${accountAddress}/send/${token.address}/sent`)
)
title={token && <h1>Send {token.name}</h1>}
disabled
defaultValue={`${tx.amount} ${token.symbol}`}
render={({ handleSubmit, pristine, submitting }) => (
<p>Enter your password to confirm this transaction.</p>
</div>
<Field
render={FetherForm.Field}
required
>
Cancel
</button>
<button
>
Confirm transaction
</button>
</nav>
</form>
)}
/>
]}
onClick={null}
token={token}
/>