From fb6aff76d2152d95caa2ba6cb0d91cb01e0687fe Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Jun 2022 00:09:25 -0300 Subject: prettier --- .../src/context/iocContext.ts | 27 ++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'packages/taler-wallet-webextension/src/context/iocContext.ts') diff --git a/packages/taler-wallet-webextension/src/context/iocContext.ts b/packages/taler-wallet-webextension/src/context/iocContext.ts index aaf1f8b67..d875d9c76 100644 --- a/packages/taler-wallet-webextension/src/context/iocContext.ts +++ b/packages/taler-wallet-webextension/src/context/iocContext.ts @@ -32,18 +32,31 @@ const Context = createContext({ /** * Inversion of control Context - * - * This context act as a proxy between API that need to be replaced in + * + * This context act as a proxy between API that need to be replaced in * different environments - * - * @returns + * + * @returns */ export const useIocContext = (): Type => useContext(Context); -export const IoCProviderForTesting = ({ value, children }: { value: Type, children: any }): VNode => { +export const IoCProviderForTesting = ({ + value, + children, +}: { + value: Type; + children: any; +}): VNode => { return h(Context.Provider, { value, children }); }; -export const IoCProviderForRuntime = ({ children }: { children: any }): VNode => { - return h(Context.Provider, { value: { findTalerUriInActiveTab: platform.findTalerUriInActiveTab }, children }); +export const IoCProviderForRuntime = ({ + children, +}: { + children: any; +}): VNode => { + return h(Context.Provider, { + value: { findTalerUriInActiveTab: platform.findTalerUriInActiveTab }, + children, + }); }; -- cgit v1.2.3