Remove usage of CustomContentLayout component

Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
soupette 2021-09-13 06:36:08 +02:00
parent 0518e7aa15
commit c6c071a30b
2 changed files with 20 additions and 16 deletions

View File

@ -12,8 +12,8 @@ import { useHistory, useLocation } from 'react-router-dom';
import isEqual from 'react-fast-compare';
import { stringify } from 'qs';
import {
CustomContentLayout,
DynamicTable,
NoPermissions,
// CheckPermissions,
// PopUpWarning,
useFocusWhenNavigate,
@ -24,7 +24,7 @@ import {
useTracking,
} from '@strapi/helper-plugin';
import { Main } from '@strapi/parts/Main';
import { HeaderLayout } from '@strapi/parts/Layout';
import { ContentLayout, HeaderLayout } from '@strapi/parts/Layout';
import { useNotifyAT } from '@strapi/parts/LiveRegions';
import { Button } from '@strapi/parts/Button';
import Add from '@strapi/icons/Add';
@ -396,19 +396,23 @@ function ListView({
subtitle={subtitle}
title={headerLayoutTitle}
/>
<CustomContentLayout canRead={canRead}>
<DynamicTable
contentType={headerLayoutTitle}
isLoading={isLoading}
headers={tableHeaders}
// rows={data}
rows={[]}
withBulkActions
withMainAction={canDelete}
>
{/* TODO */}
</DynamicTable>
</CustomContentLayout>
<ContentLayout>
{canRead ? (
<DynamicTable
contentType={headerLayoutTitle}
isLoading={isLoading}
headers={tableHeaders}
// rows={data}
rows={[]}
withBulkActions
withMainAction={canDelete}
>
{/* TODO */}
</DynamicTable>
) : (
<NoPermissions />
)}
</ContentLayout>
</Main>
);

View File

@ -54,7 +54,7 @@ const ListPage = () => {
formatMessage(
{
id: 'app.utils.notify.data-loaded',
defaultMessage: 'The {label} has loaded',
defaultMessage: 'The {target} has loaded',
},
{ target: title }
)