From e3c92b6080f4b2c7f146bd84953ef51114b23cdb Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 6 Jun 2022 00:04:53 -0300
Subject: updating package

---
 packages/anastasis-webui/src/utils/index.tsx | 44 ++++++++++------------------
 1 file changed, 15 insertions(+), 29 deletions(-)

(limited to 'packages/anastasis-webui/src/utils/index.tsx')

diff --git a/packages/anastasis-webui/src/utils/index.tsx b/packages/anastasis-webui/src/utils/index.tsx
index 2e502cacb..a59b19323 100644
--- a/packages/anastasis-webui/src/utils/index.tsx
+++ b/packages/anastasis-webui/src/utils/index.tsx
@@ -1,6 +1,4 @@
-/* eslint-disable @typescript-eslint/camelcase */
 import {
-  AuthenticationProviderStatus,
   AuthenticationProviderStatusError,
   AuthenticationProviderStatusOk,
   BackupStates,
@@ -9,7 +7,11 @@ import {
   ReducerStateRecovery,
 } from "@gnu-taler/anastasis-core";
 import { FunctionalComponent, h, VNode } from "preact";
-import { AnastasisProvider } from "../context/anastasis";
+import { AnastasisProvider } from "../context/anastasis.js";
+
+const noop = async (): Promise<void> => {
+  return;
+};
 
 export function createExample<Props>(
   Component: FunctionalComponent<Props>,
@@ -21,39 +23,23 @@ export function createExample<Props>(
       <AnastasisProvider
         value={{
           currentReducerState,
-          discoverMore: async () => {},
-          discoverStart: async () => {},
+          discoverMore: noop,
+          discoverStart: noop,
           discoveryState: {
             state: "none",
           },
           currentError: undefined,
-          back: async () => {
-            null;
-          },
-          dismissError: async () => {
-            null;
-          },
-          reset: () => {
-            null;
-          },
-          runTransaction: async () => {
-            null;
-          },
-          startBackup: () => {
-            null;
-          },
-          startRecover: () => {
-            null;
-          },
-          transition: async () => {
-            null;
-          },
+          back: noop,
+          dismissError: noop,
+          reset: noop,
+          runTransaction: noop,
+          startBackup: noop,
+          startRecover: noop,
+          transition: noop,
           exportState: () => {
             return "{}";
           },
-          importState(s: string) {
-            /* do nothing */
-          },
+          importState: noop,
         }}
       >
         <Component {...args} />
-- 
cgit v1.2.3

