11/* eslint-disable @typescript-eslint/no-explicit-any */
2- import { Grid , TableCell } from '@mui/material' ;
2+ import { TableCell } from '@mui/material' ;
33import { MUIDataTableColumn } from 'mui-datatables' ;
4- import { useTheme } from '../../theme' ;
4+ import { Grid } from '../../base' ;
5+ import { styled , useTheme } from '../../theme' ;
56import { ErrorBoundary } from '../ErrorBoundary/ErrorBoundary.js' ;
67import { ColView } from '../Helpers/ResponsiveColumns/responsive-coulmns.tsx/index.js' ;
78import ResponsiveDataTable from '../ResponsiveDataTable.js' ;
@@ -21,6 +22,14 @@ interface TeamTableProps {
2122 useNotificationHandlers : any ;
2223 useRemoveUserFromTeamMutation : any ;
2324}
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+ } ) ) ;
2433
2534const TeamTable : React . FC < TeamTableProps > = ( {
2635 teams,
@@ -51,21 +60,9 @@ const TeamTable: React.FC<TeamTableProps> = ({
5160 colSpan = { 6 }
5261 sx = { {
5362 padding : '0.5rem'
54- // backgroundColor: 'rgba(0, 0, 0, 0.05)'
5563 } }
5664 >
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 } >
6966 < UsersTable
7067 teamID = { teamID }
7168 isRemoveFromTeamAllowed = { isRemoveFromTeamAllowed }
@@ -75,7 +72,7 @@ const TeamTable: React.FC<TeamTableProps> = ({
7572 useRemoveUserFromTeamMutation = { useRemoveUserFromTeamMutation }
7673 theme = { theme }
7774 />
78- </ Grid >
75+ </ StyledGrid >
7976 </ TableCell >
8077 ) ;
8178 }
0 commit comments