From f268260df5a78ace54a9a83f1a76f77165a0bce3 Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Tue, 22 Feb 2022 15:28:05 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=82=D0=B8=D0=BF=20=D0=B2=D0=BE=D0=B7=D0=B2?= =?UTF-8?q?=D1=80=D0=B0=D1=89=D0=B0=D0=B5=D0=BC=D0=BE=D0=B3=D0=BE=20=D1=81?= =?UTF-8?q?=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=D0=B1?= =?UTF-8?q?=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5=20=D0=BD=D0=B0=20ReactN?= =?UTF-8?q?ode=20=D0=B2=20invokeWebApiWrapperAsync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/factory.ts b/src/components/factory.ts index ba9924a..3d5abfa 100644 --- a/src/components/factory.ts +++ b/src/components/factory.ts @@ -36,7 +36,7 @@ type asyncFunction = (...args: any) => Promise export const invokeWebApiWrapperAsync = async ( funcAsync: asyncFunction, setShowLoader?: Dispatch>, - errorNotifyText?: (string | ((ex: unknown) => string)), + errorNotifyText?: ReactNode | ((ex: unknown) => ReactNode), actionName?: string, ) => { setShowLoader?.(true)