diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-11 11:36:32 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-11 11:36:38 -0300 |
commit | ccb50c636054819f5af8778cc3ebe5258b1c2e87 (patch) | |
tree | 750f28869e1ebb5f1f52248d83671b13e4c89f09 /packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts | |
parent | e09ed46675047d97d4f3d4237c23f6365eba6534 (diff) | |
download | wallet-core-ccb50c636054819f5af8778cc3ebe5258b1c2e87.tar.xz |
new test api to test hooks rendering iteration, testing state of withdraw page
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts b/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts index b2d71874f..51123d154 100644 --- a/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts +++ b/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts @@ -17,10 +17,10 @@ import { NotificationType, TalerErrorDetail } from "@gnu-taler/taler-util"; import { TalerError } from "@gnu-taler/taler-wallet-core"; -import { useCallback, useEffect, useMemo, useState } from "preact/hooks"; +import { useEffect, useMemo, useState } from "preact/hooks"; import * as wxApi from "../wxApi.js"; -interface HookOk<T> { +export interface HookOk<T> { hasError: false; response: T; } |