From 9fa2696f13ee9e55b293ba1f686c8695d96974f5 Mon Sep 17 00:00:00 2001 From: Smilinko Date: Sat, 9 Dec 2023 14:15:50 +0100 Subject: [PATCH] Deleted ID's from react admin --- .../Admin/resources/cms/post/PostCreate.tsx | 13 +------------ .../Admin/resources/cms/post/PostEdit.tsx | 13 +------------ .../Admin/resources/cms/post/PostList.tsx | 1 - .../Admin/resources/cms/post/PostShow.tsx | 14 +------------- .../competition/competition/CompetitionEdit.tsx | 2 -- .../competition/competition/CompetitionList.tsx | 1 - .../competition/competition/CompetitionShow.tsx | 2 -- .../resources/competition/series/SeriesEdit.tsx | 4 +--- .../resources/competition/series/SeriesList.tsx | 2 -- .../resources/competition/series/SeriesShow.tsx | 2 -- 10 files changed, 4 insertions(+), 50 deletions(-) diff --git a/src/components/Admin/resources/cms/post/PostCreate.tsx b/src/components/Admin/resources/cms/post/PostCreate.tsx index 033a6336..5571897b 100644 --- a/src/components/Admin/resources/cms/post/PostCreate.tsx +++ b/src/components/Admin/resources/cms/post/PostCreate.tsx @@ -1,14 +1,5 @@ import {FC} from 'react' -import { - ArrayInput, - DateTimeInput, - FormTab, - NumberInput, - required, - SimpleFormIterator, - TabbedForm, - TextInput, -} from 'react-admin' +import {ArrayInput, DateTimeInput, FormTab, required, SimpleFormIterator, TabbedForm, TextInput} from 'react-admin' import {MyCreate} from '@/components/Admin/custom/MyCreate' import {SitesCheckboxInput} from '@/components/Admin/custom/SitesCheckboxInput' @@ -17,7 +8,6 @@ export const PostCreate: FC = () => ( - @@ -29,7 +19,6 @@ export const PostCreate: FC = () => ( - diff --git a/src/components/Admin/resources/cms/post/PostEdit.tsx b/src/components/Admin/resources/cms/post/PostEdit.tsx index 414e938e..b9ad77d0 100644 --- a/src/components/Admin/resources/cms/post/PostEdit.tsx +++ b/src/components/Admin/resources/cms/post/PostEdit.tsx @@ -1,14 +1,5 @@ import {FC} from 'react' -import { - ArrayInput, - DateTimeInput, - FormTab, - NumberInput, - required, - SimpleFormIterator, - TabbedForm, - TextInput, -} from 'react-admin' +import {ArrayInput, DateTimeInput, FormTab, required, SimpleFormIterator, TabbedForm, TextInput} from 'react-admin' import {MyEdit} from '@/components/Admin/custom/MyEdit' import {SitesCheckboxInput} from '@/components/Admin/custom/SitesCheckboxInput' @@ -17,7 +8,6 @@ export const PostEdit: FC = () => ( - @@ -29,7 +19,6 @@ export const PostEdit: FC = () => ( - diff --git a/src/components/Admin/resources/cms/post/PostList.tsx b/src/components/Admin/resources/cms/post/PostList.tsx index 6447afb6..909746c5 100644 --- a/src/components/Admin/resources/cms/post/PostList.tsx +++ b/src/components/Admin/resources/cms/post/PostList.tsx @@ -7,7 +7,6 @@ import {TruncatedTextField} from '@/components/Admin/custom/TruncatedTextField' export const PostList: FC = () => ( - diff --git a/src/components/Admin/resources/cms/post/PostShow.tsx b/src/components/Admin/resources/cms/post/PostShow.tsx index 63148d3d..7a56adf3 100644 --- a/src/components/Admin/resources/cms/post/PostShow.tsx +++ b/src/components/Admin/resources/cms/post/PostShow.tsx @@ -1,15 +1,5 @@ import {FC} from 'react' -import { - ArrayField, - Datagrid, - DateField, - NumberField, - Show, - SimpleShowLayout, - Tab, - TabbedShowLayout, - TextField, -} from 'react-admin' +import {ArrayField, Datagrid, DateField, Show, SimpleShowLayout, Tab, TabbedShowLayout, TextField} from 'react-admin' import {MyShowActions} from '@/components/Admin/custom/MyShowActions' import {SitesArrayField} from '@/components/Admin/custom/SitesArrayField' @@ -19,7 +9,6 @@ export const PostShow: FC = () => ( - @@ -33,7 +22,6 @@ export const PostShow: FC = () => ( - diff --git a/src/components/Admin/resources/competition/competition/CompetitionEdit.tsx b/src/components/Admin/resources/competition/competition/CompetitionEdit.tsx index 06e8ef6f..8e5f06ca 100644 --- a/src/components/Admin/resources/competition/competition/CompetitionEdit.tsx +++ b/src/components/Admin/resources/competition/competition/CompetitionEdit.tsx @@ -8,7 +8,6 @@ export const CompetitionEdit: FC = () => ( - @@ -20,7 +19,6 @@ export const CompetitionEdit: FC = () => ( - {/* unspecifiedpublication_set: UnspecifiedPublication[] registration_links: RegistrationLink[] */} diff --git a/src/components/Admin/resources/competition/competition/CompetitionList.tsx b/src/components/Admin/resources/competition/competition/CompetitionList.tsx index 2401ff02..30be4165 100644 --- a/src/components/Admin/resources/competition/competition/CompetitionList.tsx +++ b/src/components/Admin/resources/competition/competition/CompetitionList.tsx @@ -7,7 +7,6 @@ import {TruncatedTextField} from '@/components/Admin/custom/TruncatedTextField' 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 b5122249..42bc394b 100644 --- a/src/components/Admin/resources/competition/competition/CompetitionShow.tsx +++ b/src/components/Admin/resources/competition/competition/CompetitionShow.tsx @@ -21,7 +21,6 @@ export const CompetitionShow: FC = () => ( - @@ -39,7 +38,6 @@ export const CompetitionShow: FC = () => ( - diff --git a/src/components/Admin/resources/competition/series/SeriesEdit.tsx b/src/components/Admin/resources/competition/series/SeriesEdit.tsx index 9d8b7b5c..ce15a2af 100644 --- a/src/components/Admin/resources/competition/series/SeriesEdit.tsx +++ b/src/components/Admin/resources/competition/series/SeriesEdit.tsx @@ -1,5 +1,5 @@ import {FC} from 'react' -import {ArrayInput, DateInput, FormTab, NumberInput, SimpleFormIterator, TabbedForm, TextInput} from 'react-admin' +import {ArrayInput, DateInput, FormTab, SimpleFormIterator, TabbedForm, TextInput} from 'react-admin' import {MyEdit} from '@/components/Admin/custom/MyEdit' @@ -9,14 +9,12 @@ export const SeriesEdit: FC = () => ( - - diff --git a/src/components/Admin/resources/competition/series/SeriesList.tsx b/src/components/Admin/resources/competition/series/SeriesList.tsx index ab1f7e53..e51320c5 100644 --- a/src/components/Admin/resources/competition/series/SeriesList.tsx +++ b/src/components/Admin/resources/competition/series/SeriesList.tsx @@ -8,12 +8,10 @@ import {TruncatedTextField} from '@/components/Admin/custom/TruncatedTextField' export const SeriesList: FC = () => ( - - diff --git a/src/components/Admin/resources/competition/series/SeriesShow.tsx b/src/components/Admin/resources/competition/series/SeriesShow.tsx index 48ff0081..bfc2fc7f 100644 --- a/src/components/Admin/resources/competition/series/SeriesShow.tsx +++ b/src/components/Admin/resources/competition/series/SeriesShow.tsx @@ -20,7 +20,6 @@ export const SeriesShow: FC = () => ( - @@ -32,7 +31,6 @@ export const SeriesShow: FC = () => ( -