@@ -84,7 +84,6 @@ export const createDesignColumns = ({
8484} : ColumnConfigProps ) : MUIDataTableColumn [ ] => {
8585 const cleanedType = type ?. replace ( 'my-' , '' ) . replace ( / s $ / , '' ) ;
8686 const getColumnValue = ( tableMeta : MUIDataTableMeta , targetColumn : string ) : any => {
87- console . log ( 'amitas targetColumn' , tableMeta ) ;
8887 //@ts -ignore
8988 const rowData = tableMeta . tableData [ tableMeta . rowIndex ] as Pattern ;
9089 return ( rowData as any ) [ targetColumn ] || '' ;
@@ -290,13 +289,12 @@ export const createDesignColumns = ({
290289 } 's design "${ rowData ?. name } " on Layer5's Catalog`;
291290 }
292291 }
293-
294292 const baseActions : ActionItem [ ] = [
295293 {
296294 title : 'Clone' ,
297295 onClick : ( ) => handleCloneClick ( rowData ) ,
298296 disabled : isCloneDisabled ,
299- icon : < CopyIcon width = { 24 } height = { 24 } fill = { theme . palette . charcoal } />
297+ icon : < CopyIcon width = { 24 } height = { 24 } fill = { theme . palette . text . primary } />
300298 } ,
301299 {
302300 title : 'Download' ,
@@ -305,12 +303,12 @@ export const createDesignColumns = ({
305303 ? downloadFilter ( rowData . id , rowData . name )
306304 : downloadYaml ( rowData . pattern_file , rowData . name ) ;
307305 } ,
308- icon : < DownloadIcon width = { 24 } height = { 24 } fill = { theme . palette . charcoal } />
306+ icon : < DownloadIcon width = { 24 } height = { 24 } fill = { theme . palette . text . primary } />
309307 } ,
310308 {
311309 title : 'Copy Link' ,
312310 onClick : ( ) => handleCopyUrl ( rowData ) ,
313- icon : < ChainIcon width = { '24' } height = { '24' } fill = { theme . palette . charcoal } />
311+ icon : < ChainIcon width = { '24' } height = { '24' } fill = { theme . palette . text . primary } />
314312 } ,
315313 {
316314 title : 'Share Design via Socials' ,
@@ -348,7 +346,7 @@ export const createDesignColumns = ({
348346 {
349347 title : 'Open in playground' ,
350348 onClick : ( ) => handleOpenPlayground ( rowData ) ,
351- icon : < KanvasIcon width = { 24 } height = { 24 } primaryFill = { theme . palette . charcoal } />
349+ icon : < KanvasIcon width = { 24 } height = { 24 } primaryFill = { theme . palette . text . primary } />
352350 }
353351 ] ;
354352 // TODO: make this unbpublish action work for playgroud
@@ -359,14 +357,14 @@ export const createDesignColumns = ({
359357 title : 'Unpublish' ,
360358 onClick : ( ) => handleUnpublish ( rowData ) ,
361359 disabled : isUnpublishDisabled ,
362- icon : < PublishIcon width = { 24 } height = { 24 } fill = { theme . palette . charcoal } />
360+ icon : < PublishIcon width = { 24 } height = { 24 } fill = { theme . palette . text . primary } />
363361 } ,
364362 ...baseActions . slice ( 2 )
365363 ]
366364 : baseActions ;
367365
368366 //@ts -ignore
369- return < DataTableEllipsisMenu actionsList = { actionsList } /> ;
367+ return < DataTableEllipsisMenu actionsList = { actionsList } theme = { theme } /> ;
370368 }
371369 }
372370 }
0 commit comments