File tree Expand file tree Collapse file tree
src/custom/CatalogDesignTable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import RemoveCircleIcon from '@mui/icons-material/RemoveCircle' ;
12import { Theme } from '@mui/material' ;
23import { MUIDataTableColumn , MUIDataTableMeta } from 'mui-datatables' ;
34import { Typography } from '../../base' ;
@@ -221,10 +222,14 @@ export const createDesignsColumnsConfig = ({
221222 )
222223 } ,
223224 {
224- title : isFromWorkspaceTable ? 'Move Design' : 'Delete' ,
225+ title : isFromWorkspaceTable ? 'Remove Design' : 'Delete' ,
225226 disabled : isFromWorkspaceTable ? ! isRemoveAllowed : ! isDeleteAllowed ,
226227 onClick : ( ) => handleDeleteModal ( rowData ) ( ) ,
227- icon : < L5DeleteIcon />
228+ icon : isFromWorkspaceTable ? (
229+ < RemoveCircleIcon style = { { color : theme ?. palette . icon . default } } />
230+ ) : (
231+ < L5DeleteIcon />
232+ )
228233 }
229234 ] ;
230235
You can’t perform that action at this time.
0 commit comments