22import RemoveCircleIcon from '@mui/icons-material/RemoveCircle' ;
33import { MUIDataTableColumn , MUIDataTableMeta } from 'mui-datatables' ;
44import 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' ;
77import { useTheme } from '../../theme' ;
88import { NameDiv } from '../CatalogDesignTable/style' ;
99import { RESOURCE_TYPES } from '../CatalogDetail/types' ;
@@ -22,13 +22,7 @@ import { UserTableAvatarInfo } from '../UsersTable';
2222import VisibilityChipMenu , { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu' ;
2323import AssignmentModal from './AssignmentModal' ;
2424import 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' ;
3226
3327interface ViewsTableProps {
3428 workspaceId : string ;
@@ -311,13 +305,15 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
311305 return (
312306 < >
313307 < 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+ >
321317 < SearchBar
322318 onSearch = { ( value ) => {
323319 setSearch ( value ) ;
@@ -342,7 +338,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
342338 disabled = { ! isAssignAllowed }
343339 title = "Assign Views"
344340 />
345- </ TableRightActionHeader >
341+ </ Box >
346342 </ TableHeader >
347343
348344 < ResponsiveDataTable
0 commit comments