Role picker: Remove unnecessary table wrapper (#77707)

This commit is contained in:
Alexander Zobnin
2023-11-06 15:33:58 +01:00
committed by GitHub
parent b6e2db7d91
commit a558d287a7
3 changed files with 13 additions and 60 deletions

View File

@@ -22,7 +22,6 @@ import { contextSrv } from 'app/core/services/context_srv';
import { AccessControlAction, Role, StoreState, Team } from 'app/types';
import { TeamRolePicker } from '../../core/components/RolePicker/TeamRolePicker';
import { TableWrapper } from '../admin/Users/TableWrapper';
import { deleteTeam, loadTeams, changePage, changeQuery, changeSort } from './state/actions';
@@ -173,22 +172,15 @@ export const TeamList = ({
</LinkButton>
</div>
<Stack gap={2}>
<TableWrapper>
<InteractiveTable
columns={columns}
data={teams}
getRowId={(team) => String(team.id)}
fetchData={changeSort}
/>
<Stack justifyContent="flex-end">
<Pagination
hideWhenSinglePage
currentPage={page}
numberOfPages={totalPages}
onNavigate={changePage}
/>
</Stack>
</TableWrapper>
<InteractiveTable
columns={columns}
data={teams}
getRowId={(team) => String(team.id)}
fetchData={changeSort}
/>
<Stack justifyContent="flex-end">
<Pagination hideWhenSinglePage currentPage={page} numberOfPages={totalPages} onNavigate={changePage} />
</Stack>
</Stack>
</>
)}