diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-13 02:23:24 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-13 02:23:24 +0200 |
commit | 250069d86097a966366d21e447f6c3fcc70659bd (patch) | |
tree | 0710d7957ece0997e217206622854bf112d8e9b6 /pages | |
parent | 122e069d914622343fa1a21c3990a2f416ea9dfe (diff) |
refactoring / refresh WIP
Diffstat (limited to 'pages')
-rw-r--r-- | pages/tree.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/tree.tsx b/pages/tree.tsx index b1c22b9f8..ba5f787b4 100644 --- a/pages/tree.tsx +++ b/pages/tree.tsx @@ -23,18 +23,18 @@ /// <reference path="../lib/decl/preact.d.ts" /> import { IExchangeInfo } from "../lib/wallet/types"; -import { Reserve, Coin, PreCoin, Denomination } from "../lib/wallet/types"; +import { ReserveRecord, Coin, PreCoin, Denomination } from "../lib/wallet/types"; import { ImplicitStateComponent, StateHolder } from "../lib/components"; import { getReserves, getExchanges, getCoins, getPreCoins } from "../lib/wallet/wxApi"; import { prettyAmount, abbrev } from "../lib/wallet/renderHtml"; interface ReserveViewProps { - reserve: Reserve; + reserve: ReserveRecord; } class ReserveView extends preact.Component<ReserveViewProps, void> { render(): JSX.Element { - let r: Reserve = this.props.reserve; + let r: ReserveRecord = this.props.reserve; return ( <div className="tree-item"> <ul> @@ -248,7 +248,7 @@ class DenominationList extends ImplicitStateComponent<DenominationListProps> { } class ReserveList extends ImplicitStateComponent<ReserveListProps> { - reserves = this.makeState<Reserve[] | null>(null); + reserves = this.makeState<ReserveRecord[] | null>(null); expanded = this.makeState<boolean>(false); constructor(props: ReserveListProps) { |