@@ -3,7 +3,7 @@ import _ from 'lodash';
33import { MUIDataTableColumn } from 'mui-datatables' ;
44import { useCallback , useMemo , useRef } from 'react' ;
55import { PublishIcon } from '../../icons' ;
6- import { CHARCOAL , useTheme } from '../../theme' ;
6+ import { CHARCOAL } from '../../theme' ;
77import { Pattern } from '../CustomCatalog/CustomCard' ;
88import { ErrorBoundary } from '../ErrorBoundary' ;
99import { ColView } from '../Helpers/ResponsiveColumns/responsive-coulmns.tsx/responsive-column' ;
@@ -52,10 +52,8 @@ export const CatalogDesignsTable: React.FC<CatalogDesignsTableProps> = ({
5252 handleBulkDeleteModal,
5353 setSearch,
5454 rowsPerPageOptions = [ 10 , 25 , 50 , 100 ] ,
55- tableBackgroundColor,
5655 handleBulkpatternsDataUnpublishModal
5756} ) => {
58- const theme = useTheme ( ) ;
5957 const modalRef = useRef < PromptRef > ( null ) ;
6058
6159 const formatDate = useCallback ( ( date : string | Date ) : string => {
@@ -72,8 +70,6 @@ export const CatalogDesignsTable: React.FC<CatalogDesignsTableProps> = ({
7270 return columns . map ( ( col ) => {
7371 const newCol = { ...col } ;
7472 if ( ! newCol . options ) newCol . options = { } ;
75- newCol . options . sort = true ;
76- newCol . options . filter = true ;
7773 newCol . options . display = columnVisibility [ col . name ] ;
7874 if (
7975 [
@@ -149,8 +145,6 @@ export const CatalogDesignsTable: React.FC<CatalogDesignsTableProps> = ({
149145 rowsPerPage : pageSize ,
150146 page,
151147 elevation : 0 ,
152- sort : true ,
153- filter : true ,
154148 sortOrder : {
155149 name : sortOrder . split ( ' ' ) [ 0 ] ,
156150 direction : sortOrder . split ( ' ' ) [ 1 ]
@@ -208,13 +202,6 @@ export const CatalogDesignsTable: React.FC<CatalogDesignsTableProps> = ({
208202 colViews = { colViews }
209203 tableCols = { processedColumns }
210204 columnVisibility = { columnVisibility }
211- backgroundColor = {
212- tableBackgroundColor
213- ? tableBackgroundColor
214- : theme . palette . mode === 'light'
215- ? theme . palette . background . default
216- : theme . palette . background . secondary
217- }
218205 />
219206 </ ErrorBoundary >
220207 ) ;
0 commit comments