@@ -3,8 +3,8 @@ import { Lock, Public } from '@mui/icons-material';
33import RemoveCircleIcon from '@mui/icons-material/RemoveCircle' ;
44import { MUIDataTableColumn , MUIDataTableMeta } from 'mui-datatables' ;
55import React , { useState } from 'react' ;
6- import { Box , Typography } from '../../base' ;
7- import { EnvironmentIcon , ViewIcon } from '../../icons' ;
6+ import { Box } from '../../base' ;
7+ import { EnvironmentIcon } from '../../icons' ;
88import { useTheme } from '../../theme' ;
99import { NameDiv } from '../CatalogDesignTable/style' ;
1010import { RESOURCE_TYPES } from '../CatalogDetail/types' ;
@@ -23,13 +23,7 @@ import { UserTableAvatarInfo } from '../UsersTable';
2323import VisibilityChipMenu , { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu' ;
2424import AssignmentModal from './AssignmentModal' ;
2525import useViewAssignment from './hooks/useViewsAssignment' ;
26- import {
27- CellStyle ,
28- CustomBodyRenderStyle ,
29- L5EditIcon ,
30- TableHeader ,
31- TableRightActionHeader
32- } from './styles' ;
26+ import { CellStyle , CustomBodyRenderStyle , L5EditIcon , TableHeader } from './styles' ;
3327
3428interface ViewsTableProps {
3529 workspaceId : string ;
@@ -337,13 +331,15 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
337331 return (
338332 < >
339333 < TableHeader style = { { padding : '1rem' } } >
340- < Box display = { 'flex' } alignItems = "center" gap = { 1 } width = "100%" >
341- < ViewIcon height = "1.5rem" width = "1.5rem" fill = { theme . palette . icon . brand } />
342- < Typography variant = "body1" fontWeight = { 'bold' } >
343- Assigned Views
344- </ Typography >
345- </ Box >
346- < TableRightActionHeader style = { { marginRight : '0rem' } } >
334+ < Box
335+ style = { {
336+ marginRight : '0rem' ,
337+ width : '100%' ,
338+ justifyContent : 'end' ,
339+ display : 'flex' ,
340+ alignItems : 'center'
341+ } }
342+ >
347343 < SearchBar
348344 onSearch = { ( value ) => {
349345 setSearch ( value ) ;
@@ -368,7 +364,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
368364 disabled = { ! isAssignAllowed }
369365 title = "Assign Views"
370366 />
371- </ TableRightActionHeader >
367+ </ Box >
372368 </ TableHeader >
373369
374370 < ResponsiveDataTable
0 commit comments