Skip to content

Commit f970367

Browse files
committed
fix: suggestion
Signed-off-by: amitamrutiya <[email protected]>
1 parent e6b6f36 commit f970367

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

src/custom/TeamTable/TeamTable.tsx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { Grid, TableCell } from '@mui/material';
2+
import { TableCell } from '@mui/material';
33
import { MUIDataTableColumn } from 'mui-datatables';
4-
import { useTheme } from '../../theme';
4+
import { Grid } from '../../base';
5+
import { styled, useTheme } from '../../theme';
56
import { ErrorBoundary } from '../ErrorBoundary/ErrorBoundary.js';
67
import { ColView } from '../Helpers/ResponsiveColumns/responsive-coulmns.tsx/index.js';
78
import 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

2534
const 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
}

src/custom/Workspaces/EnvironmentTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ const EnvironmentTable: React.FC<EnvironmentTableProps> = ({
291291
tableCols={tableCols}
292292
updateCols={updateCols}
293293
columnVisibility={columnVisibility}
294-
// backgroundColor={theme.palette.background.card}
295294
/>
296295
</AccordionDetails>
297296
</Accordion>

0 commit comments

Comments
 (0)