From 62cec679833db48465d67194e39b29db985aa430 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 26 May 2023 10:54:42 -0300
Subject: using taler crypto

---
 packages/exchange-backoffice-ui/src/Dashboard.tsx | 55 +++--------------------
 1 file changed, 7 insertions(+), 48 deletions(-)

(limited to 'packages/exchange-backoffice-ui/src/Dashboard.tsx')

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">
-- 
cgit v1.2.3

