Skip to content

Commit

Permalink
fix: suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: amitamrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Jan 31, 2025
1 parent e6b6f36 commit f970367
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
29 changes: 13 additions & 16 deletions src/custom/TeamTable/TeamTable.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Grid, TableCell } from '@mui/material';
import { TableCell } from '@mui/material';
import { MUIDataTableColumn } from 'mui-datatables';
import { useTheme } from '../../theme';
import { Grid } from '../../base';
import { styled, useTheme } from '../../theme';
import { ErrorBoundary } from '../ErrorBoundary/ErrorBoundary.js';
import { ColView } from '../Helpers/ResponsiveColumns/responsive-coulmns.tsx/index.js';
import ResponsiveDataTable from '../ResponsiveDataTable.js';
Expand All @@ -21,6 +22,14 @@ interface TeamTableProps {
useNotificationHandlers: any;
useRemoveUserFromTeamMutation: any;
}
const StyledGrid = styled(Grid)(({ theme }) => ({
display: 'grid',
margin: 'auto',
paddingLeft: '0.5rem',
borderRadius: '0.25rem',
width: 'inherit',
gap: theme.spacing(1)
}));

const TeamTable: React.FC<TeamTableProps> = ({
teams,
Expand Down Expand Up @@ -51,21 +60,9 @@ const TeamTable: React.FC<TeamTableProps> = ({
colSpan={6}
sx={{
padding: '0.5rem'
// backgroundColor: 'rgba(0, 0, 0, 0.05)'
}}
>
<Grid
container
xs={12}
spacing={1}
sx={{
margin: 'auto',
// backgroundColor: '#f3f1f1',
paddingLeft: '0.5rem',
borderRadius: '0.25rem',
width: 'inherit'
}}
>
<StyledGrid container xs={12}>
<UsersTable
teamID={teamID}
isRemoveFromTeamAllowed={isRemoveFromTeamAllowed}
Expand All @@ -75,7 +72,7 @@ const TeamTable: React.FC<TeamTableProps> = ({
useRemoveUserFromTeamMutation={useRemoveUserFromTeamMutation}
theme={theme}
/>
</Grid>
</StyledGrid>
</TableCell>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/custom/Workspaces/EnvironmentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ const EnvironmentTable: React.FC<EnvironmentTableProps> = ({
tableCols={tableCols}
updateCols={updateCols}
columnVisibility={columnVisibility}
// backgroundColor={theme.palette.background.card}
/>
</AccordionDetails>
</Accordion>
Expand Down

0 comments on commit f970367

Please sign in to comment.