Skip to content

Commit

Permalink
remove unnecessary boolean pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Dec 9, 2023
1 parent 433a6b8 commit 4ae0315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {FC} from 'react'
import {BooleanField, Datagrid, List, NumberField, TextField} from 'react-admin'
import {Datagrid, List, NumberField, TextField} from 'react-admin'

import {SitesArrayField} from '@/components/Admin/custom/SitesArrayField'
import {TruncatedTextField} from '@/components/Admin/custom/TruncatedTextField'
Expand All @@ -11,8 +11,6 @@ export const FlatpageList: FC = () => (
<TextField source="url" />
<TextField source="title" />
<TruncatedTextField source="content" maxTextWidth={30} />
<BooleanField source="enable_comments" />
<BooleanField source="registration_required" />
<SitesArrayField source="sites" />
</Datagrid>
</List>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {FC} from 'react'
import {BooleanField, NumberField, Show, SimpleShowLayout, TextField} from 'react-admin'
import {NumberField, Show, SimpleShowLayout, TextField} from 'react-admin'

import {MyShowActions} from '@/components/Admin/custom/MyShowActions'
import {SitesArrayField} from '@/components/Admin/custom/SitesArrayField'
Expand All @@ -12,8 +12,6 @@ export const FlatpageShow: FC = () => (
<TextField source="url" />
<TextField source="title" />
<TruncatedTextField source="content" maxTextWidth={200} expandable />
<BooleanField source="enable_comments" />
<BooleanField source="registration_required" />
<SitesArrayField source="sites" />
</SimpleShowLayout>
</Show>
Expand Down

0 comments on commit 4ae0315

Please sign in to comment.