diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-05 18:17:56 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-05 18:17:56 -0300 |
commit | a9606b04f4dafef0263f56f0d0b0d47b6fbd6616 (patch) | |
tree | 925e7bb3d2555553db0024b4b91f1a5e15aed45b /packages/merchant-backoffice-ui | |
parent | b95cc1876b7263913a3a18df9234fd0122f25cf2 (diff) |
hide impersonation
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/admin/list/TableActive.tsx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/admin/list/TableActive.tsx b/packages/merchant-backoffice-ui/src/paths/admin/list/TableActive.tsx index 923c095d3..2455913c2 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/list/TableActive.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/list/TableActive.tsx @@ -21,12 +21,10 @@ import { TalerMerchantApi } from "@gnu-taler/taler-util"; import { - useMerchantApiContext, - useTranslationContext, + useTranslationContext } from "@gnu-taler/web-util/browser"; -import { h, VNode } from "preact"; +import { VNode, h } from "preact"; import { StateUpdater, useEffect, useState } from "preact/hooks"; -import { useSessionContext } from "../../../context/session.js"; interface Props { instances: TalerMerchantApi.Instance[]; @@ -152,8 +150,8 @@ function Table({ onPurge, }: TableProps): VNode { const { i18n } = useTranslationContext(); - const { lib } = useMerchantApiContext(); - const { impersonate } = useSessionContext(); + // const { lib } = useMerchantApiContext(); + // const { impersonate } = useSessionContext(); return ( <div class="table-container"> <table class="table is-fullwidth is-striped is-hoverable is-fullwidth"> @@ -201,7 +199,8 @@ function Table({ </label> </td> <td> - <a + {/* TODO uncommented to enable impersonate #8604 */} + {/* <a href={`#/orders`} onClick={async (e) => { e.preventDefault(); @@ -213,9 +212,9 @@ function Table({ token: undefined, }); }} - > + > */} {i.id} - </a> + {/* </a> */} </td> <td>{i.name}</td> <td class="is-actions-cell right-sticky"> |