From 57065ae7e060b6872045d21c664ff0769e3cc364 Mon Sep 17 00:00:00 2001 From: Smilinko Date: Sun, 10 Dec 2023 01:21:36 +0100 Subject: [PATCH] Competition year format without spaces --- .../competition/CompetitionShow.tsx | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/components/Admin/resources/competition/competition/CompetitionShow.tsx b/src/components/Admin/resources/competition/competition/CompetitionShow.tsx index 7ea13155..bfeeb1b8 100644 --- a/src/components/Admin/resources/competition/competition/CompetitionShow.tsx +++ b/src/components/Admin/resources/competition/competition/CompetitionShow.tsx @@ -1,9 +1,12 @@ +import {Divider} from '@mui/material' import {FC} from 'react' import { ArrayField, Datagrid, DateField, + FunctionField, NumberField, + RaRecord, Show, SimpleShowLayout, Tab, @@ -11,11 +14,12 @@ 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 = () => ( }> @@ -26,24 +30,29 @@ export const CompetitionShow: FC = () => ( - - + - - + + + + - + `/competition/event/${id}/show`}> + - - + + source="publication_set" + label="Publication count" + render={(record) => record && {record['publication_set'].length}} + />