diff --git a/public/app/features/admin/Users/OrgUsersTable.tsx b/public/app/features/admin/Users/OrgUsersTable.tsx index 34a58210fab..174a881c457 100644 --- a/public/app/features/admin/Users/OrgUsersTable.tsx +++ b/public/app/features/admin/Users/OrgUsersTable.tsx @@ -26,8 +26,6 @@ import { AccessControlAction, OrgUser, Role } from 'app/types'; import { OrgRolePicker } from '../OrgRolePicker'; -import { TableWrapper } from './TableWrapper'; - type Cell = CellProps; const disabledRoleMessage = `This user's role is not editable because it is synchronized from your auth provider. @@ -220,17 +218,10 @@ export const OrgUsersTable = ({ return ( - - String(user.userId)} - fetchData={fetchData} - /> - - - - + String(user.userId)} fetchData={fetchData} /> + + + {Boolean(userToRemove) && ( { - const styles = useStyles2(getStyles); - return
{children}
; -}; - -const getStyles = (theme: GrafanaTheme2) => ({ - // Enable RolePicker overflow - wrapper: css({ - display: 'flex', - flexDirection: 'column', - overflowX: 'auto', - overflowY: 'hidden', - minHeight: '100vh', - width: '100%', - '& > div': { - overflowX: 'unset', - marginBottom: theme.spacing(2), - }, - }), -}); diff --git a/public/app/features/teams/TeamList.tsx b/public/app/features/teams/TeamList.tsx index 4211a462ec1..fe57446c476 100644 --- a/public/app/features/teams/TeamList.tsx +++ b/public/app/features/teams/TeamList.tsx @@ -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 = ({ - - String(team.id)} - fetchData={changeSort} - /> - - - - + String(team.id)} + fetchData={changeSort} + /> + + + )}