aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 00:37:08 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 00:37:08 +0200
commitdb0fc776982a61181baf286c8344a3b11d3531ec (patch)
treeed38671873074fcec34e1fafaf8b1426fcda5efb /lib/wallet
parent153765d76e6af95669add8717a2a3126fb6432b0 (diff)
refactor / remove lodash dependency
Diffstat (limited to 'lib/wallet')
-rw-r--r--lib/wallet/db.ts5
-rw-r--r--lib/wallet/renderHtml.tsx4
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/wallet/db.ts b/lib/wallet/db.ts
index 5104f28fb..23cc9eb07 100644
--- a/lib/wallet/db.ts
+++ b/lib/wallet/db.ts
@@ -15,7 +15,6 @@
*/
"use strict";
-import Dictionary = _.Dictionary;
/**
* Declarations and helpers for
@@ -88,7 +87,7 @@ export function exportDb(db: IDBDatabase): Promise<any> {
let dump = {
name: db.name,
version: db.version,
- stores: {} as Dictionary<any>,
+ stores: {} as {[s: string]: any},
};
return new Promise((resolve, reject) => {
@@ -99,7 +98,7 @@ export function exportDb(db: IDBDatabase): Promise<any> {
});
for (let i = 0; i < db.objectStoreNames.length; i++) {
let name = db.objectStoreNames[i];
- let storeDump = {} as Dictionary<any>;
+ let storeDump = {} as {[s: string]: any};
dump.stores[name] = storeDump;
let store = tx.objectStore(name)
.openCursor()
diff --git a/lib/wallet/renderHtml.tsx b/lib/wallet/renderHtml.tsx
index f3059f940..db0f00ec5 100644
--- a/lib/wallet/renderHtml.tsx
+++ b/lib/wallet/renderHtml.tsx
@@ -29,8 +29,8 @@ export function prettyAmount(amount: AmountJson) {
}
export function renderContract(contract: Contract): JSX.Element {
- let merchantName = m("strong", contract.merchant.name);
- let amount = m("strong", prettyAmount(contract.amount));
+ let merchantName = <strong>{contract.merchant.name}</strong>;
+ let amount = <strong>{prettyAmount(contract.amount)}</strong>;
return (
<div>