@@ -3,6 +3,7 @@ import TableBody from "@material-ui/core/TableBody"
3
3
import TableCell from "@material-ui/core/TableCell"
4
4
import TableHead from "@material-ui/core/TableHead"
5
5
import TableRow from "@material-ui/core/TableRow"
6
+ import { TableContainer } from "components/TableContainer/TableContainer"
6
7
import { FC } from "react"
7
8
import * as TypesGen from "../../api/typesGenerated"
8
9
import { UsersTableBody } from "./UsersTableBody"
@@ -37,29 +38,31 @@ export const UsersTable: FC<UsersTableProps> = ({
37
38
isLoading,
38
39
} ) => {
39
40
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 >
64
67
)
65
68
}
0 commit comments