diff options
Diffstat (limited to 'src/webex/pages')
-rw-r--r-- | src/webex/pages/add-auditor.tsx | 8 | ||||
-rw-r--r-- | src/webex/pages/popup.tsx | 11 |
2 files changed, 8 insertions, 11 deletions
diff --git a/src/webex/pages/add-auditor.tsx b/src/webex/pages/add-auditor.tsx index 4e3f8615c..fc7de920f 100644 --- a/src/webex/pages/add-auditor.tsx +++ b/src/webex/pages/add-auditor.tsx @@ -78,7 +78,7 @@ function ConfirmAuditor(props: ConfirmAuditorProps): JSX.Element { setAddDone(true); }; - const back = () => { + const back = (): void => { window.history.back(); }; @@ -86,12 +86,12 @@ function ConfirmAuditor(props: ConfirmAuditorProps): JSX.Element { <div id="main"> <p> Do you want to let <strong>{props.auditorPub}</strong> audit the - currency "{props.currency}"? + currency "{props.currency}"? </p> {addDone ? ( <div> Auditor was added! You can also{" "} - <a href={chrome.extension.getURL("/src/webex/pages/auditors.html")}> + <a href={chrome.extension.getURL("/auditors.html")}> view and edit </a>{" "} auditors. @@ -113,7 +113,7 @@ function ConfirmAuditor(props: ConfirmAuditorProps): JSX.Element { ); } -export function makeAddAuditorPage() { +export function makeAddAuditorPage(): JSX.Element { const walletPageUrl = new URL(document.location.href); const url = walletPageUrl.searchParams.get("url"); if (!url) { diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index c2f050e2a..f62f64b73 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -734,21 +734,18 @@ function WalletDebug(props: any): JSX.Element { return ( <div> <p>Debug tools:</p> - <button onClick={openExtensionPage("/src/webex/pages/popup.html")}> + <button onClick={openExtensionPage("/popup.html")}> wallet tab </button> - <button onClick={openExtensionPage("/src/webex/pages/benchmark.html")}> + <button onClick={openExtensionPage("/benchmark.html")}> benchmark </button> - <button onClick={openExtensionPage("/src/webex/pages/show-db.html")}> + <button onClick={openExtensionPage("/show-db.html")}> show db </button> - <button onClick={openExtensionPage("/src/webex/pages/tree.html")}> + <button onClick={openExtensionPage("/tree.html")}> show tree </button> - <button onClick={openExtensionPage("/src/webex/pages/logs.html")}> - show logs - </button> <br /> <button onClick={confirmReset}>reset</button> <button onClick={reload}>reload chrome extension</button> |