feat(tokens): Move TXID to its own card

This commit is contained in:
nicocappabianca
2020-10-21 20:03:12 -03:00
parent 8dd0b3e521
commit 0914e15348
+10 -11
View File
@@ -19,7 +19,7 @@ class Tokens extends React.Component {
inFetch: true,
errMsg: '',
selectedTokenToSend: '',
showForm: false,
showForm: false,
txId: null
}
}
@@ -36,18 +36,18 @@ class Tokens extends React.Component {
className='btn-md ml-1 mt-1 mb-1'
onClick={_this.handleGetTokens}
/>
{_this.state.txId &&
<div className="txIdContainer">
{_this.state.txId &&
<div className='txIdContainer'>
<button
onClick={() => _this.setState({txId: null})}
onClick={() => _this.setState({ txId: null })}
>
&times;
</button>
<Col xs={12} className="text-center mt-1">
<Box
<Col xs={12} className='text-center mt-1'>
<Box
title='Transaction ID'
type='primary'
className="p-0"
type='primary'
className='p-0'
>
<a
target='_blank'
@@ -58,8 +58,7 @@ class Tokens extends React.Component {
</a>
</Box>
</Col>
</div>
}
</div>}
{_this.state.showForm && (
<SendTokens
bchWallet={_this.props.bchWallet}
@@ -124,7 +123,7 @@ class Tokens extends React.Component {
)
}
setTxId (txId = null) {
setTxId (txId = null) {
_this.setState({
txId: txId
})