View on GitHub
File Changes
// @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) => {
    <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"
        </label>
        <input type="submit" value="Get balance!" />
      </form>
-
      <p>Current Account Id: {address}</p>
+
      <p>Current Address: {address}</p>
      <p>Balance: {balance}</p>
    </div>
  );