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' ;
@@ -15,7 +16,6 @@ import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu';
1516import AuthorCell from './AuthorCell' ;
1617import { getColumnValue } from './helper' ;
1718import { L5DeleteIcon , NameDiv } from './style' ;
18- import RemoveCircleIcon from '@mui/icons-material/RemoveCircle' ;
1919
2020interface TableMeta extends MUIDataTableMeta {
2121 rowIndex : number ;
@@ -222,10 +222,14 @@ export const createDesignsColumnsConfig = ({
222222 )
223223 } ,
224224 {
225- title : isFromWorkspaceTable ? 'Move Design' : 'Delete' ,
225+ title : isFromWorkspaceTable ? 'Remove Design' : 'Delete' ,
226226 disabled : isFromWorkspaceTable ? ! isRemoveAllowed : ! isDeleteAllowed ,
227227 onClick : ( ) => handleDeleteModal ( rowData ) ( ) ,
228- icon : isFromWorkspaceTable ? < RemoveCircleIcon style = { { color :theme ?. palette . icon . default } } /> : < L5DeleteIcon />
228+ icon : isFromWorkspaceTable ? (
229+ < RemoveCircleIcon style = { { color : theme ?. palette . icon . default } } />
230+ ) : (
231+ < L5DeleteIcon />
232+ )
229233 }
230234 ] ;
231235
You can’t perform that action at this time.
0 commit comments