diff --git a/src/components/EventReports.jsx b/src/components/EventReports.jsx index ffece71..0f0810d 100644 --- a/src/components/EventReports.jsx +++ b/src/components/EventReports.jsx @@ -2,6 +2,7 @@ import React from "react"; import { Datagrid, DateField, + DeleteButton, List, NumberField, Pagination, @@ -10,6 +11,8 @@ import { Tab, TabbedShowLayout, TextField, + TopToolbar, + useRecordContext, useTranslate, } from "react-admin"; import PageviewIcon from "@mui/icons-material/Pageview"; @@ -32,7 +35,7 @@ const ReportPagination = () => ( export const ReportShow = props => { const translate = useTranslate(); return ( - + }> { ); }; +const ReportShowActions = () => { + const record = useRecordContext(); + + return ( + + + + ); +}; + export const ReportList = props => (