1
1
/* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { Grid , TableCell } from '@mui/material' ;
2
+ import { TableCell } from '@mui/material' ;
3
3
import { MUIDataTableColumn } from 'mui-datatables' ;
4
- import { useTheme } from '../../theme' ;
4
+ import { Grid } from '../../base' ;
5
+ import { styled , useTheme } from '../../theme' ;
5
6
import { ErrorBoundary } from '../ErrorBoundary/ErrorBoundary.js' ;
6
7
import { ColView } from '../Helpers/ResponsiveColumns/responsive-coulmns.tsx/index.js' ;
7
8
import ResponsiveDataTable from '../ResponsiveDataTable.js' ;
@@ -21,6 +22,14 @@ interface TeamTableProps {
21
22
useNotificationHandlers : any ;
22
23
useRemoveUserFromTeamMutation : any ;
23
24
}
25
+ const StyledGrid = styled ( Grid ) ( ( { theme } ) => ( {
26
+ display : 'grid' ,
27
+ margin : 'auto' ,
28
+ paddingLeft : '0.5rem' ,
29
+ borderRadius : '0.25rem' ,
30
+ width : 'inherit' ,
31
+ gap : theme . spacing ( 1 )
32
+ } ) ) ;
24
33
25
34
const TeamTable : React . FC < TeamTableProps > = ( {
26
35
teams,
@@ -51,21 +60,9 @@ const TeamTable: React.FC<TeamTableProps> = ({
51
60
colSpan = { 6 }
52
61
sx = { {
53
62
padding : '0.5rem'
54
- // backgroundColor: 'rgba(0, 0, 0, 0.05)'
55
63
} }
56
64
>
57
- < Grid
58
- container
59
- xs = { 12 }
60
- spacing = { 1 }
61
- sx = { {
62
- margin : 'auto' ,
63
- // backgroundColor: '#f3f1f1',
64
- paddingLeft : '0.5rem' ,
65
- borderRadius : '0.25rem' ,
66
- width : 'inherit'
67
- } }
68
- >
65
+ < StyledGrid container xs = { 12 } >
69
66
< UsersTable
70
67
teamID = { teamID }
71
68
isRemoveFromTeamAllowed = { isRemoveFromTeamAllowed }
@@ -75,7 +72,7 @@ const TeamTable: React.FC<TeamTableProps> = ({
75
72
useRemoveUserFromTeamMutation = { useRemoveUserFromTeamMutation }
76
73
theme = { theme }
77
74
/>
78
- </ Grid >
75
+ </ StyledGrid >
79
76
</ TableCell >
80
77
) ;
81
78
}
0 commit comments