mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Role picker: Remove unnecessary table wrapper (#77707)
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user