summaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src/Dashboard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/exchange-backoffice-ui/src/Dashboard.tsx')
-rw-r--r--packages/exchange-backoffice-ui/src/Dashboard.tsx55
1 files changed, 7 insertions, 48 deletions
diff --git a/packages/exchange-backoffice-ui/src/Dashboard.tsx b/packages/exchange-backoffice-ui/src/Dashboard.tsx
index 9f4a43513..6794ca1f8 100644
--- a/packages/exchange-backoffice-ui/src/Dashboard.tsx
+++ b/packages/exchange-backoffice-ui/src/Dashboard.tsx
@@ -1,36 +1,13 @@
-import { Dialog, Menu, Transition } from "@headlessui/react";
-import {
- ChevronDownIcon,
- MagnifyingGlassIcon,
- UserIcon,
- XCircleIcon,
-} from "@heroicons/react/20/solid";
-import {
- Bars3Icon,
- BellIcon,
- CheckCircleIcon,
- Cog6ToothIcon,
- XMarkIcon,
-} from "@heroicons/react/24/outline";
+import { useNotifications } from "@gnu-taler/web-util/browser";
+import { Dialog, Transition } from "@headlessui/react";
+import { UserIcon, XCircleIcon } from "@heroicons/react/20/solid";
+import { CheckCircleIcon, XMarkIcon } from "@heroicons/react/24/outline";
+import { InformationCircleIcon } from "@heroicons/react/24/solid";
import { ComponentChildren, Fragment, VNode, h } from "preact";
-import { ForwardedRef, forwardRef } from "preact/compat";
-import { useEffect, useRef, useState } from "preact/hooks";
+import { useState } from "preact/hooks";
+import logo from "./assets/logo-2021.svg";
import { Pages } from "./pages.js";
import { Router, useCurrentLocation } from "./route.js";
-import { InformationCircleIcon } from "@heroicons/react/24/solid";
-import {
- useLocalStorage,
- useMemoryStorage,
- useNotifications,
-} from "@gnu-taler/web-util/browser";
-import {
- AbsoluteTime,
- Codec,
- buildCodecForObject,
- codecForAbsoluteTime,
- codecForString,
-} from "@gnu-taler/taler-util";
-import logo from "./assets/logo-2021.svg";
function classNames(...classes: string[]) {
return classes.filter(Boolean).join(" ");
@@ -329,25 +306,7 @@ function NavigationBar({
);
}
-export interface Officer {
- salt: string;
- when: AbsoluteTime;
- key: string;
-}
-
-export const codecForOfficer = (): Codec<Officer> =>
- buildCodecForObject<Officer>()
- .property("salt", codecForString()) // FIXME
- .property("when", codecForAbsoluteTime) // FIXME
- .property("key", codecForString())
- .build("Officer");
-
function TopBar({ onOpenSidebar }: { onOpenSidebar: () => void }) {
- const password = useMemoryStorage("password");
- const officer = useLocalStorage("officer", {
- codec: codecForOfficer(),
- });
-
return (
<div class="relative flex h-16 justify-between">
<div class="relative z-10 flex p-2 lg:hidden">