Export acc js (#4973)

* Export account RPC

* Removing GethDirectory and ParityDirectory

* js export accounts as json

* js export accounts as json

* api - then - catch

* final touches

* pass

* oops

* individual accounts

* refactoring

* refactor one

* refactor one

* refactor two

* some grumble fixes

* file name changes

* constructor

* constructor

* git recognize file name change

* spec and updates

* specs

* one tiny fix

* one tiny fix

* grumbles

* more grumbles

* sliders

* ff

* pointer default

* grumbles

* almost ready

* lots of updates

* accountList

* stupid debuglog

* bug fix

* bug fix

* some more good ol fashioned updates

* filter accounts

* clean

* update spec

* ff

* ff-f

* balances fix
This commit is contained in:
Craig O'Connor
2017-04-26 05:34:48 -04:00
committed by Jaco Greeff
parent 3be3b78c90
commit cf904b6b2f
15 changed files with 765 additions and 15 deletions

View File

@@ -27,6 +27,7 @@ import styles from './accountCard.css';
export default class AccountCard extends Component {
static propTypes = {
children: PropTypes.node,
account: PropTypes.object.isRequired,
balance: PropTypes.object,
className: PropTypes.string,
@@ -44,7 +45,7 @@ export default class AccountCard extends Component {
};
render () {
const { account, balance, className, onFocus } = this.props;
const { account, balance, className, onFocus, children } = this.props;
const { copied } = this.state;
const { address, description, meta = {}, name } = account;
const { tags = [] } = meta;
@@ -89,6 +90,7 @@ export default class AccountCard extends Component {
className={ styles.balance }
showOnlyEth
/>
{ children }
</div>
{

View File

@@ -29,7 +29,7 @@ export default class SelectionList extends Component {
items: arrayOrObjectProptype().isRequired,
noStretch: PropTypes.bool,
onDefaultClick: PropTypes.func,
onSelectClick: PropTypes.func.isRequired,
onSelectClick: PropTypes.func,
onSelectDoubleClick: PropTypes.func,
renderItem: PropTypes.func.isRequired
};
@@ -57,8 +57,10 @@ export default class SelectionList extends Component {
: item.checked;
const handleClick = () => {
onSelectClick(item);
return false;
if (onSelectClick) {
onSelectClick(item);
return false;
}
};
const handleDoubleClick = () => {
onSelectDoubleClick(item);