bez bara z lewej

This commit is contained in:
wrzesinski-hubert 2020-06-09 16:36:28 +02:00
parent a08345b756
commit e7fcae3369
1 changed files with 1 additions and 11 deletions

View File

@ -1,12 +1,11 @@
import * as React from "react";
import { ViewState, IntegratedEditing, EditingState } from "@devexpress/dx-react-scheduler";
import { ViewState } from "@devexpress/dx-react-scheduler";
import { AppointmentModel } from "@devexpress/dx-react-scheduler";
import {
Scheduler,
WeekView,
Appointments,
AppointmentTooltip,
AppointmentForm,
} from "@devexpress/dx-react-scheduler-material-ui";
import moment from "moment";
import "moment/locale/pl";
@ -104,10 +103,6 @@ export default class Calendar extends React.PureComponent<
};
}
commitChanges() {
}
render() {
const { data } = this.props;
const { currentDate } = this.state;
@ -115,9 +110,6 @@ export default class Calendar extends React.PureComponent<
return (
<Scheduler data={data} locale={"PL-PL"} firstDayOfWeek={1}>
<ViewState defaultCurrentDate={currentDate} />
<EditingState
onCommitChanges={this.commitChanges}
/>
<WeekView
startDayHour={8}
endDayHour={20}
@ -127,10 +119,8 @@ export default class Calendar extends React.PureComponent<
timeTableLayoutComponent={TimeTableLayout}
timeTableCellComponent={TimeTableCell}
/>
<IntegratedEditing/>
<Appointments appointmentComponent={Appointment} />
<AppointmentTooltip />
<AppointmentForm/>
</Scheduler>
);
}