Skip to content

Commit ee24386

Browse files
feat(calendar-web): use the new CalendarPropsBuilder
1 parent 0d5b8b1 commit ee24386

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/pluggableWidgets/calendar-web/src/Calendar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import classnames from "classnames";
22
import { ReactElement, createElement } from "react";
3-
import { DnDCalendar, extractCalendarProps } from "./utils/calendar-utils";
43
import { CalendarContainerProps } from "../typings/CalendarProps";
4+
import { CalendarPropsBuilder } from "./helpers/CalendarPropsBuilder";
5+
import { DnDCalendar } from "./utils/calendar-utils";
56
import { constructWrapperStyle } from "./utils/style-utils";
67
import "./ui/Calendar.scss";
78

89
export default function MxCalendar(props: CalendarContainerProps): ReactElement {
910
const { class: className } = props;
1011
const wrapperStyle = constructWrapperStyle(props);
11-
const calendarProps = extractCalendarProps(props);
12+
const calendarProps = new CalendarPropsBuilder(props).build();
1213

1314
return (
1415
<div className={classnames("widget-calendar", className)} style={wrapperStyle}>

0 commit comments

Comments
 (0)