diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-07 13:37:32 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-07 13:37:32 +0530 |
commit | fb2e2f89935240666de66e4b2c11125cb3b2943d (patch) | |
tree | 7b7e148e6cce7bf7639a5e35102f5269f5920ab5 /src/webex/pages/popup.tsx | |
parent | 1471aae8927c20d646cc2aa5ab0e20c1a7f2c0ca (diff) | |
download | wallet-core-fb2e2f89935240666de66e4b2c11125cb3b2943d.tar.xz |
more lint fixes
Diffstat (limited to 'src/webex/pages/popup.tsx')
-rw-r--r-- | src/webex/pages/popup.tsx | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index f62f64b73..cdb09d444 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -31,11 +31,7 @@ import * as Amounts from "../../util/amounts"; import { WalletBalance, WalletBalanceEntry } from "../../types/walletTypes"; -import { - abbrev, - renderAmount, - PageLink, -} from "../renderHtml"; +import { abbrev, renderAmount, PageLink } from "../renderHtml"; import * as wxApi from "../wxApi"; import React, { Fragment } from "react"; @@ -671,7 +667,7 @@ class WalletHistory extends React.Component<any, any> { console.log("rendering history"); const history: HistoryEvent[] = this.myHistory; if (this.gotError) { - return i18n.str`Error: could not retrieve event history`; + return <span>i18n.str`Error: could not retrieve event history`</span>; } if (!history) { @@ -734,18 +730,10 @@ function WalletDebug(props: any): JSX.Element { return ( <div> <p>Debug tools:</p> - <button onClick={openExtensionPage("/popup.html")}> - wallet tab - </button> - <button onClick={openExtensionPage("/benchmark.html")}> - benchmark - </button> - <button onClick={openExtensionPage("/show-db.html")}> - show db - </button> - <button onClick={openExtensionPage("/tree.html")}> - show tree - </button> + <button onClick={openExtensionPage("/popup.html")}>wallet tab</button> + <button onClick={openExtensionPage("/benchmark.html")}>benchmark</button> + <button onClick={openExtensionPage("/show-db.html")}>show db</button> + <button onClick={openExtensionPage("/tree.html")}>show tree</button> <br /> <button onClick={confirmReset}>reset</button> <button onClick={reload}>reload chrome extension</button> @@ -788,4 +776,4 @@ function WalletPopup(): JSX.Element { export function createPopup(): JSX.Element { chrome.runtime.connect({ name: "popup" }); return <WalletPopup />; -}
\ No newline at end of file +} |