import * as React from "react"; import { ViewState } from "@devexpress/dx-react-scheduler"; import { AppointmentModel } from "@devexpress/dx-react-scheduler"; import { Scheduler, WeekView, Appointments, } from "@devexpress/dx-react-scheduler-material-ui"; import moment from "moment"; import "moment/locale/pl"; import { appointments } from "./appointments"; import "./index.scss"; import { makeStyles, Theme, createStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; interface CalendarProps {} interface CalendarState { data: Array; currentDate: Date; } const formatDayScaleDate = ( date: moment.MomentInput, options: { weekday: any } ) => { const momentDate = moment(date).locale("pl"); const { weekday } = options; return momentDate.format(weekday ? "dddd" : " ").toUpperCase(); }; const useStyles = makeStyles((theme: Theme) => createStyles({ dayScaleCell: { paddingTop: 10, paddingBottom: 10, }, timeTableLayout: { border: "1px solid rgba(224, 224, 224, 1);", }, timeTableCell: { //borderRadius:2, }, }) ); //don't know how to set proper type of function arguments const DayScaleCell = ({ formatDate, ...restProps }: any) => { const classes = useStyles(); return ( ); }; const TimeTableCell = ({ ...restProps }: any) => { const classes = useStyles(); return ( ); }; const TimeTableLayout = ({ ...restProps }: any) => { const classes = useStyles(); return ( ); }; export default class Calendar extends React.PureComponent< CalendarProps, CalendarState > { constructor(props: CalendarProps) { super(props); this.state = { data: appointments, currentDate: new Date("2020-06-01"), }; } render() { const { data, currentDate } = this.state; return (
Hubert WrzesiƄski

Semestr zimowy 2020/2021
1 2 3 4 5 6 7 8 9 10
); } }