bez bara z lewej
This commit is contained in:
parent
a08345b756
commit
e7fcae3369
@ -1,12 +1,11 @@
|
|||||||
import * as React from "react";
|
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 { AppointmentModel } from "@devexpress/dx-react-scheduler";
|
||||||
import {
|
import {
|
||||||
Scheduler,
|
Scheduler,
|
||||||
WeekView,
|
WeekView,
|
||||||
Appointments,
|
Appointments,
|
||||||
AppointmentTooltip,
|
AppointmentTooltip,
|
||||||
AppointmentForm,
|
|
||||||
} from "@devexpress/dx-react-scheduler-material-ui";
|
} from "@devexpress/dx-react-scheduler-material-ui";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import "moment/locale/pl";
|
import "moment/locale/pl";
|
||||||
@ -104,10 +103,6 @@ export default class Calendar extends React.PureComponent<
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
commitChanges() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data } = this.props;
|
const { data } = this.props;
|
||||||
const { currentDate } = this.state;
|
const { currentDate } = this.state;
|
||||||
@ -115,9 +110,6 @@ export default class Calendar extends React.PureComponent<
|
|||||||
return (
|
return (
|
||||||
<Scheduler data={data} locale={"PL-PL"} firstDayOfWeek={1}>
|
<Scheduler data={data} locale={"PL-PL"} firstDayOfWeek={1}>
|
||||||
<ViewState defaultCurrentDate={currentDate} />
|
<ViewState defaultCurrentDate={currentDate} />
|
||||||
<EditingState
|
|
||||||
onCommitChanges={this.commitChanges}
|
|
||||||
/>
|
|
||||||
<WeekView
|
<WeekView
|
||||||
startDayHour={8}
|
startDayHour={8}
|
||||||
endDayHour={20}
|
endDayHour={20}
|
||||||
@ -127,10 +119,8 @@ export default class Calendar extends React.PureComponent<
|
|||||||
timeTableLayoutComponent={TimeTableLayout}
|
timeTableLayoutComponent={TimeTableLayout}
|
||||||
timeTableCellComponent={TimeTableCell}
|
timeTableCellComponent={TimeTableCell}
|
||||||
/>
|
/>
|
||||||
<IntegratedEditing/>
|
|
||||||
<Appointments appointmentComponent={Appointment} />
|
<Appointments appointmentComponent={Appointment} />
|
||||||
<AppointmentTooltip />
|
<AppointmentTooltip />
|
||||||
<AppointmentForm/>
|
|
||||||
</Scheduler>
|
</Scheduler>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user