Skip to content

Commit

Permalink
Feat: expose date localizer (#1347)
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
TrySound authored and jquense committed Jun 9, 2019
1 parent 8ef00d6 commit 5d93c9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 5d93c9d

Please sign in to comment.