From 5d93c9d21202a64e149cfade7ed6a44c244d12cf Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Sun, 9 Jun 2019 15:02:14 +0300 Subject: [PATCH] Feat: expose date localizer (#1347) I use date-fns and have custom localizer. Though I need to import internals to create it. Would be good to have it in public api. Also did you consider to use named exports instead of Object.assign? --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 889099bcd..1d0083c49 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,14 @@ import Calendar from './Calendar' import EventWrapper from './EventWrapper' import BackgroundWrapper from './BackgroundWrapper' +import { DateLocalizer } from './localizer' import momentLocalizer from './localizers/moment' import globalizeLocalizer from './localizers/globalize' import move from './utils/move' import { views, navigate } from './utils/constants' Object.assign(Calendar, { + DateLocalizer, globalizeLocalizer, momentLocalizer, Views: views,