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)