forked from jquense/react-big-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide named exports api (jquense#1348)
BREAKING CHANGE: must use named exports for additional RBC imports ```js import { Calendar, DateLocalizer, momentLocalizer, globalizeLocalizer, move, Views, Navigate, components } from 'react-big-calendar'; ```
- Loading branch information
Showing
3 changed files
with
28 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
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, | ||
Navigate: navigate, | ||
move, | ||
components: { | ||
eventWrapper: EventWrapper, | ||
timeSlotWrapper: BackgroundWrapper, | ||
dateCellWrapper: BackgroundWrapper, | ||
}, | ||
}) | ||
export const components = { | ||
eventWrapper: EventWrapper, | ||
timeSlotWrapper: BackgroundWrapper, | ||
dateCellWrapper: BackgroundWrapper, | ||
} | ||
|
||
export default Calendar | ||
export { default as Calendar } from './Calendar' | ||
export { DateLocalizer } from './localizer' | ||
export { default as momentLocalizer } from './localizers/moment' | ||
export { default as globalizeLocalizer } from './localizers/globalize' | ||
export { default as move } from './utils/move' | ||
export { views as Views, navigate as Navigate } from './utils/constants' |