Unverified Commit 3d13a05e authored by Iain Maitland's avatar Iain Maitland
Browse files

add keys to transaction confirmation

parent 4c9dac2c
......@@ -2,16 +2,22 @@ import React from 'react';
import PropTypes from 'prop-types';
const ConfirmTransfer = ({ operation }) => {
const info = Object.keys(operation).map(k => {
const info = Object.keys(operation).map((k, i) => {
return (
<div className="input-group">
<span className="input-group-label">{k}</span>
<div key={`transaction-group-${i}`} className="input-group">
<span
key={`transaction-label-${i}`}
className="input-group-label"
>
{k}
</span>
<input
className="input-group-field"
type="text"
required
value={operation[k]}
disabled={true}
key={`transaction-input-${i}`}
/>
</div>
);
......
......@@ -269,6 +269,7 @@ class LoginForm extends Component {
: null;
const isTransfer =
loginBroadcastOperation &&
loginBroadcastOperation
.get('type')
.toLowerCase()
......
......@@ -184,12 +184,10 @@ export default function reducer(state = defaultState, action) {
}
// Action creators
export const confirmOperation = payload => {
return {
type: CONFIRM_OPERATION,
payload,
};
};
export const confirmOperation = payload => ({
type: CONFIRM_OPERATION,
payload,
});
export const hideConfirm = payload => ({
type: HIDE_CONFIRM,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment