calendar routes

This commit is contained in:
kurpfish
2021-12-07 09:58:19 +02:00
parent 4629bc74a9
commit d4ec833a31
9 changed files with 60 additions and 37 deletions

View File

@ -1,9 +1,11 @@
import React from 'react';
import { useHistory } from 'react-router';
import { WithLogout } from '../hoc/withLogout';
import Calendar from '../components/Calendar/Calendar';
const CalendarPage = () => {
return <WithLogout><Calendar /></WithLogout>;
const history = useHistory();
return <WithLogout><Calendar onSelect={() => { history.push('/report/0') }} /></WithLogout>;
};
export default CalendarPage;