Skip to content
Permalink
Browse files

modified UX so it specifies that the address and not the accountid sh…

…ould be used
  • Loading branch information...
jpcapurro-atixlabs committed Oct 9, 2019
1 parent 0f25393 commit 133b5f8ea76d2209e8f4cf604875ff8f53a6d5ed
Showing with 6 additions and 6 deletions.
  1. +6 −6 examples/wallet/app/components/AddressInfo.js
@@ -1,10 +1,11 @@
// @flow
import React, { useState } from 'react';
import { Address, Balance } from '../models';

type Props = {
setAddress: (address: string) => void,
balance: number,
address: string
setAddress: (address: Address) => void,
balance: Address,
address: Balance
};

export default ({ setAddress, balance, address }: Props) => {
@@ -17,8 +18,7 @@ export default ({ setAddress, balance, address }: Props) => {
<div>
<form onSubmit={handleSubmit}>
<label htmlFor="address">
{/* FIXME: get the address here and compute the accountId from it somewhere else */}
accountId:
Address:
<input
type="text"
name="address"
@@ -28,7 +28,7 @@ export default ({ setAddress, balance, address }: Props) => {
</label>
<input type="submit" value="Get balance!" />
</form>
<p>Current Account Id: {address}</p>
<p>Current Address: {address}</p>
<p>Balance: {balance}</p>
</div>
);

0 comments on commit 133b5f8

Please sign in to comment.
You can’t perform that action at this time.