aboutsummaryrefslogtreecommitdiff
path: root/src/webex/pages
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-07 13:58:55 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-07 13:58:55 +0530
commitfaba5e9db8e0d1fdc4845de6b504b4e2ea3ca72b (patch)
tree53bbc26d9e5d16e168e682ce808461a395e00f45 /src/webex/pages
parentfb2e2f89935240666de66e4b2c11125cb3b2943d (diff)
downloadwallet-core-faba5e9db8e0d1fdc4845de6b504b4e2ea3ca72b.tar.xz
finally make linter happy
Diffstat (limited to 'src/webex/pages')
-rw-r--r--src/webex/pages/popup.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index cdb09d444..0fd2477f6 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -40,6 +40,9 @@ import { HistoryEvent } from "../../types/history";
import moment from "moment";
import { Timestamp } from "../../util/time";
+// FIXME: move to newer react functions
+/* eslint-disable react/no-deprecated */
+
function onUpdateNotification(f: () => void): () => void {
const port = chrome.runtime.connect({ name: "notifications" });
const listener = (): void => {
@@ -290,7 +293,7 @@ class WalletBalanceView extends React.Component<any, any> {
const listing = Object.keys(wallet.byCurrency).map((key) => {
const entry: WalletBalanceEntry = wallet.byCurrency[key];
return (
- <p>
+ <p key={key}>
{bigAmount(entry.available)} {this.formatPending(entry)}
</p>
);
@@ -414,7 +417,7 @@ function amountDiff(
}
}
-function parseSummary(summary: string) {
+function parseSummary(summary: string): { item: string; merchant: string } {
const parsed = summary.split(/: (.+)/);
return {
merchant: parsed[0],