From 831323977a10cf35138a5b5a00c0538517ee234d Mon Sep 17 00:00:00 2001 From: Dmitriy Kovalenko Date: Sat, 24 Aug 2019 17:04:49 +0300 Subject: [PATCH] Restore support of lib instnace (#1281) * Fix ts error and formik example * Fix eslint error * Fix missing support of libInstance properly --- lib/src/MuiPickersUtilsProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/MuiPickersUtilsProvider.tsx b/lib/src/MuiPickersUtilsProvider.tsx index 752cba4b4..707dec7d3 100644 --- a/lib/src/MuiPickersUtilsProvider.tsx +++ b/lib/src/MuiPickersUtilsProvider.tsx @@ -18,7 +18,7 @@ export const MuiPickersUtilsProvider: React.FC = ( locale, libInstance, }) => { - const utils = React.useMemo(() => new Utils({ locale, moment: libInstance }), [ + const utils = React.useMemo(() => new Utils({ locale, instance: libInstance }), [ Utils, libInstance, locale,