Skip to content

Commit 1879b9d

Browse files
authored
Merge pull request #1011 from layer5io/amitamrutiya-patch-1-1
Update WorkspaceViewsTable.tsx
2 parents 27cd048 + cd51862 commit 1879b9d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/custom/Workspaces/WorkspaceViewsTable.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2+
import RemoveCircleIcon from '@mui/icons-material/RemoveCircle';
23
import { MUIDataTableColumn, MUIDataTableMeta } from 'mui-datatables';
34
import React, { useState } from 'react';
45
import { Box, Typography } from '../../base';
5-
import { DeleteIcon, EnvironmentIcon, ViewIcon } from '../../icons';
6+
import { EnvironmentIcon, ViewIcon } from '../../icons';
67
import { useTheme } from '../../theme';
78
import { NameDiv } from '../CatalogDesignTable/style';
89
import { RESOURCE_TYPES } from '../CatalogDetail/types';
@@ -227,7 +228,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
227228
customBodyRender: (_: string, tableMeta: MUIDataTableMeta) => (
228229
<IconWrapper disabled={!isRemoveAllowed}>
229230
<TooltipIcon
230-
id={`delete_team-${tableMeta.rowIndex}`}
231+
id={`delete_view-${tableMeta.rowIndex}`}
231232
title="Remove View"
232233
onClick={() => {
233234
isRemoveAllowed &&
@@ -238,7 +239,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
238239
}}
239240
iconType="delete"
240241
>
241-
<DeleteIcon height={28} width={28} fill={theme.palette.icon.default} />
242+
<RemoveCircleIcon style={{ color: theme?.palette.icon.default }} />{' '}
242243
</TooltipIcon>
243244
</IconWrapper>
244245
)

0 commit comments

Comments
 (0)