@@ -3,6 +3,7 @@ import TableBody from "@material-ui/core/TableBody"
33import TableCell from "@material-ui/core/TableCell"
44import TableHead from "@material-ui/core/TableHead"
55import TableRow from "@material-ui/core/TableRow"
6+ import { TableContainer } from "components/TableContainer/TableContainer"
67import { FC } from "react"
78import * as TypesGen from "../../api/typesGenerated"
89import { UsersTableBody } from "./UsersTableBody"
@@ -37,29 +38,31 @@ export const UsersTable: FC<UsersTableProps> = ({
3738 isLoading,
3839} ) => {
3940 return (
40- < Table >
41- < TableHead >
42- < TableRow >
43- < TableCell > { Language . usernameLabel } </ TableCell >
44- < TableCell > { Language . statusLabel } </ TableCell >
45- < TableCell > { Language . rolesLabel } </ TableCell >
46- { /* 1% is a trick to make the table cell width fit the content */ }
47- { canEditUsers && < TableCell width = "1%" /> }
48- </ TableRow >
49- </ TableHead >
50- < TableBody >
51- < UsersTableBody
52- users = { users }
53- roles = { roles }
54- isLoading = { isLoading }
55- canEditUsers = { canEditUsers }
56- isUpdatingUserRoles = { isUpdatingUserRoles }
57- onActivateUser = { onActivateUser }
58- onResetUserPassword = { onResetUserPassword }
59- onSuspendUser = { onSuspendUser }
60- onUpdateUserRoles = { onUpdateUserRoles }
61- />
62- </ TableBody >
63- </ Table >
41+ < TableContainer >
42+ < Table >
43+ < TableHead >
44+ < TableRow >
45+ < TableCell > { Language . usernameLabel } </ TableCell >
46+ < TableCell > { Language . statusLabel } </ TableCell >
47+ < TableCell > { Language . rolesLabel } </ TableCell >
48+ { /* 1% is a trick to make the table cell width fit the content */ }
49+ { canEditUsers && < TableCell width = "1%" /> }
50+ </ TableRow >
51+ </ TableHead >
52+ < TableBody >
53+ < UsersTableBody
54+ users = { users }
55+ roles = { roles }
56+ isLoading = { isLoading }
57+ canEditUsers = { canEditUsers }
58+ isUpdatingUserRoles = { isUpdatingUserRoles }
59+ onActivateUser = { onActivateUser }
60+ onResetUserPassword = { onResetUserPassword }
61+ onSuspendUser = { onSuspendUser }
62+ onUpdateUserRoles = { onUpdateUserRoles }
63+ />
64+ </ TableBody >
65+ </ Table >
66+ </ TableContainer >
6467 )
6568}
0 commit comments