mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 04:33:46 +00:00
Add Main tag
This commit is contained in:
parent
af6553acd9
commit
317ebf030a
@ -12,6 +12,7 @@ import {
|
||||
Thead,
|
||||
Tr,
|
||||
VisuallyHidden,
|
||||
Main,
|
||||
} from '@strapi/parts';
|
||||
import matchSorter from 'match-sorter';
|
||||
import React, { useCallback, useState } from 'react';
|
||||
@ -100,17 +101,18 @@ const RoleListPage = () => {
|
||||
// ! TODO - Add the search input
|
||||
|
||||
return (
|
||||
<>
|
||||
<Main labelledBy="title">
|
||||
<PageTitle name="Roles" />
|
||||
<HeaderLayout
|
||||
primaryAction={
|
||||
id="title"
|
||||
primaryAction={(
|
||||
<Button onClick={handleToggleModalForCreatingRole} startIcon={<AddIcon />}>
|
||||
{formatMessage({
|
||||
id: 'Settings.roles.list.button.add',
|
||||
defaultMessage: 'Add new role',
|
||||
})}
|
||||
</Button>
|
||||
}
|
||||
)}
|
||||
title={formatMessage({
|
||||
id: 'Settings.roles.title',
|
||||
defaultMessage: 'roles',
|
||||
@ -124,14 +126,14 @@ const RoleListPage = () => {
|
||||
<Table
|
||||
colCount={colCount}
|
||||
rowCount={rowCount}
|
||||
footer={
|
||||
footer={(
|
||||
<TFooter onClick={handleToggleModalForCreatingRole} icon={<AddIcon />}>
|
||||
{formatMessage({
|
||||
id: 'Settings.roles.list.button.add',
|
||||
defaultMessage: 'Add new role',
|
||||
})}
|
||||
</TFooter>
|
||||
}
|
||||
)}
|
||||
>
|
||||
<Thead>
|
||||
<Tr>
|
||||
@ -185,7 +187,7 @@ const RoleListPage = () => {
|
||||
{!rowCount && !isLoading && <EmptyRole />}
|
||||
</ContentLayout>
|
||||
<UpgradePlanModal isOpen={isModalOpen} onToggle={handleToggle} />
|
||||
</>
|
||||
</Main>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@ -20,6 +20,7 @@ import {
|
||||
TableLabel,
|
||||
VisuallyHidden,
|
||||
BaseCheckbox,
|
||||
Main,
|
||||
} from '@strapi/parts';
|
||||
import { get } from 'lodash';
|
||||
import matchSorter from 'match-sorter';
|
||||
@ -299,9 +300,10 @@ const RoleListPage = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Main labelledBy="title">
|
||||
<PageTitle name="Roles" />
|
||||
<HeaderLayout
|
||||
id="title"
|
||||
primaryAction={
|
||||
canCreate ? (
|
||||
<Button onClick={handleNewRoleClick} startIcon={<AddIcon />}>
|
||||
@ -411,7 +413,7 @@ const RoleListPage = () => {
|
||||
toggleModal={handleToggleModal}
|
||||
isConfirmButtonLoading={showModalConfirmButtonLoading}
|
||||
/>
|
||||
</>
|
||||
</Main>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user