diff --git a/src/components/EventEdit.tsx b/src/components/EventEdit.tsx index c899239..4ecc24b 100644 --- a/src/components/EventEdit.tsx +++ b/src/components/EventEdit.tsx @@ -218,7 +218,7 @@ class EventEdit extends React.PureComponent { this.setState({start: date})} + onChange={(date: string) => this.setState({start: date})} /> @@ -226,7 +226,7 @@ class EventEdit extends React.PureComponent { this.setState({end: date})} + onChange={(date: string) => this.setState({end: date})} /> diff --git a/src/widgets/DateTimePicker.tsx b/src/widgets/DateTimePicker.tsx index 5230850..ee6faf2 100644 --- a/src/widgets/DateTimePicker.tsx +++ b/src/widgets/DateTimePicker.tsx @@ -9,7 +9,7 @@ class DateTimePicker extends React.PureComponent { props: { value?: string, dateOnly?: boolean, - onChange: (date: Date) => void; + onChange: (date: string) => void; }; constructor(props: any) {