2
2
import RemoveCircleIcon from '@mui/icons-material/RemoveCircle' ;
3
3
import { MUIDataTableColumn , MUIDataTableMeta } from 'mui-datatables' ;
4
4
import React , { useState } from 'react' ;
5
- import { Box , Typography } from '../../base' ;
6
- import { EnvironmentIcon , ViewIcon } from '../../icons' ;
5
+ import { Box } from '../../base' ;
6
+ import { EnvironmentIcon } from '../../icons' ;
7
7
import { useTheme } from '../../theme' ;
8
8
import { NameDiv } from '../CatalogDesignTable/style' ;
9
9
import { RESOURCE_TYPES } from '../CatalogDetail/types' ;
@@ -22,13 +22,7 @@ import { UserTableAvatarInfo } from '../UsersTable';
22
22
import VisibilityChipMenu , { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu' ;
23
23
import AssignmentModal from './AssignmentModal' ;
24
24
import useViewAssignment from './hooks/useViewsAssignment' ;
25
- import {
26
- CellStyle ,
27
- CustomBodyRenderStyle ,
28
- L5EditIcon ,
29
- TableHeader ,
30
- TableRightActionHeader
31
- } from './styles' ;
25
+ import { CellStyle , CustomBodyRenderStyle , L5EditIcon , TableHeader } from './styles' ;
32
26
33
27
interface ViewsTableProps {
34
28
workspaceId : string ;
@@ -311,13 +305,15 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
311
305
return (
312
306
< >
313
307
< TableHeader style = { { padding : '1rem' } } >
314
- < Box display = { 'flex' } alignItems = "center" gap = { 1 } width = "100%" >
315
- < ViewIcon height = "1.5rem" width = "1.5rem" fill = { theme . palette . icon . brand } />
316
- < Typography variant = "body1" fontWeight = { 'bold' } >
317
- Assigned Views
318
- </ Typography >
319
- </ Box >
320
- < TableRightActionHeader style = { { marginRight : '0rem' } } >
308
+ < Box
309
+ style = { {
310
+ marginRight : '0rem' ,
311
+ width : '100%' ,
312
+ justifyContent : 'end' ,
313
+ display : 'flex' ,
314
+ alignItems : 'center'
315
+ } }
316
+ >
321
317
< SearchBar
322
318
onSearch = { ( value ) => {
323
319
setSearch ( value ) ;
@@ -342,7 +338,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
342
338
disabled = { ! isAssignAllowed }
343
339
title = "Assign Views"
344
340
/>
345
- </ TableRightActionHeader >
341
+ </ Box >
346
342
</ TableHeader >
347
343
348
344
< ResponsiveDataTable
0 commit comments