diff --git a/src/components/Admin/resources/competition/competition/CompetitionList.tsx b/src/components/Admin/resources/competition/competition/CompetitionList.tsx index 0a0d17bd..7f05301e 100644 --- a/src/components/Admin/resources/competition/competition/CompetitionList.tsx +++ b/src/components/Admin/resources/competition/competition/CompetitionList.tsx @@ -9,7 +9,7 @@ export const CompetitionList: FC = () => ( - + diff --git a/src/components/Admin/resources/competition/competition/CompetitionShow.tsx b/src/components/Admin/resources/competition/competition/CompetitionShow.tsx index a690a0f0..7ea13155 100644 --- a/src/components/Admin/resources/competition/competition/CompetitionShow.tsx +++ b/src/components/Admin/resources/competition/competition/CompetitionShow.tsx @@ -1,12 +1,9 @@ -import {Divider} from '@mui/material' import {FC} from 'react' import { ArrayField, Datagrid, DateField, - FunctionField, NumberField, - RaRecord, Show, SimpleShowLayout, Tab, @@ -14,12 +11,11 @@ import { TextField, } from 'react-admin' +import {JsonField} from '@/components/Admin/custom/JsonField' import {MyShowActions} from '@/components/Admin/custom/MyShowActions' import {SitesArrayField} from '@/components/Admin/custom/SitesArrayField' import {TruncatedTextField} from '@/components/Admin/custom/TruncatedTextField' -import {UpcomingOrCurrentEvent} from './UpcomingOrCurrentEvent' - export const CompetitionShow: FC = () => ( }> @@ -27,32 +23,27 @@ export const CompetitionShow: FC = () => ( - + - + + - - - - + + - `/competition/event/${id}/show`}> + - - - source="publication_set" - label="Publication count" - render={(record) => record && {record['publication_set'].length}} - /> + +