Skip to content

Commit

Permalink
Fix font sizes, colors. Include data tab for send-eth transaction con…
Browse files Browse the repository at this point in the history
…firmations that have data
  • Loading branch information
alextsg committed Jul 12, 2018
1 parent 92fc87a commit 6701771
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

&__warning {
font-size: .75rem;
color: $oslo-gray;
color: #5f5922;
}
}
2 changes: 1 addition & 1 deletion ui/app/components/network-display/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

&__name {
font-size: .875rem;
font-size: .75rem;
padding-left: 5px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default class ConfirmSendEther extends Component {
static propTypes = {
editTransaction: PropTypes.func,
history: PropTypes.object,
txParams: PropTypes.object,
}

handleEdit ({ txData }) {
Expand All @@ -19,11 +20,18 @@ export default class ConfirmSendEther extends Component {
history.push(SEND_ROUTE)
}

shouldHideData () {
const { txParams = {} } = this.props
return !txParams.data
}

render () {
const hideData = this.shouldHideData()

return (
<ConfirmTransactionBase
action={this.context.t('confirm')}
hideData
hideData={hideData}
onEdit={confirmTransactionData => this.handleEdit(confirmTransactionData)}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import { updateSend } from '../../../actions'
import { clearConfirmTransaction } from '../../../ducks/confirm-transaction.duck'
import ConfirmSendEther from './confirm-send-ether.component'

const mapStateToProps = state => {
const { confirmTransaction: { txData: { txParams } = {} } } = state

return {
txParams,
}
}

const mapDispatchToProps = dispatch => {
return {
editTransaction: txData => {
Expand Down Expand Up @@ -33,5 +41,5 @@ const mapDispatchToProps = dispatch => {

export default compose(
withRouter,
connect(null, mapDispatchToProps)
connect(mapStateToProps, mapDispatchToProps)
)(ConfirmSendEther)

0 comments on commit 6701771

Please sign in to comment.