diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-04 17:16:06 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-04 17:16:06 +0530 |
commit | 42b6c58db80b78efd62140e0752881090498dcc1 (patch) | |
tree | d3a3516319b375166602f410386991149168d246 /src/webex/pages/popup.tsx | |
parent | 848f44733e1e1a1b9215811e3949fca6b6e93968 (diff) | |
download | wallet-core-42b6c58db80b78efd62140e0752881090498dcc1.tar.xz |
settings tab
Diffstat (limited to 'src/webex/pages/popup.tsx')
-rw-r--r-- | src/webex/pages/popup.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index f6d95e2f9..7da8056d0 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -40,6 +40,7 @@ import { HistoryEvent } from "../../types/history"; import moment from "moment"; import { Timestamp } from "../../util/time"; import { classifyTalerUri, TalerUriType } from "../../util/taleruri"; +import { PermissionsCheckbox } from "./welcome"; // FIXME: move to newer react functions /* eslint-disable react/no-deprecated */ @@ -153,6 +154,7 @@ class WalletNavBar extends React.Component<any, any> { <div className="nav" id="header"> <Tab target="/balance">{i18n.str`Balance`}</Tab> <Tab target="/history">{i18n.str`History`}</Tab> + <Tab target="/settings">{i18n.str`Settings`}</Tab> <Tab target="/debug">{i18n.str`Debug`}</Tab> </div> ); @@ -624,6 +626,15 @@ const HistoryComponent = (props: any): JSX.Element => { return formatHistoryItem(record); }; +class WalletSettings extends React.Component<any, any> { + render(): JSX.Element { + return <div> + <h2>Permissions</h2> + <PermissionsCheckbox /> + </div>; + } +} + class WalletHistory extends React.Component<any, any> { private myHistory: any[]; private gotError = false; @@ -876,6 +887,7 @@ function WalletPopup(): JSX.Element { <Router> <WalletBalanceView route="/balance" default /> <WalletHistory route="/history" /> + <WalletSettings route="/settings" /> <WalletDebug route="/debug" /> </Router> </div> |