@@ -3,8 +3,8 @@ import { Lock, Public } from '@mui/icons-material';
3
3
import RemoveCircleIcon from '@mui/icons-material/RemoveCircle' ;
4
4
import { MUIDataTableColumn , MUIDataTableMeta } from 'mui-datatables' ;
5
5
import 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' ;
8
8
import { useTheme } from '../../theme' ;
9
9
import { NameDiv } from '../CatalogDesignTable/style' ;
10
10
import { RESOURCE_TYPES } from '../CatalogDetail/types' ;
@@ -23,13 +23,7 @@ import { UserTableAvatarInfo } from '../UsersTable';
23
23
import VisibilityChipMenu , { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu' ;
24
24
import AssignmentModal from './AssignmentModal' ;
25
25
import 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' ;
33
27
34
28
interface ViewsTableProps {
35
29
workspaceId : string ;
@@ -337,13 +331,15 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
337
331
return (
338
332
< >
339
333
< 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
+ >
347
343
< SearchBar
348
344
onSearch = { ( value ) => {
349
345
setSearch ( value ) ;
@@ -368,7 +364,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
368
364
disabled = { ! isAssignAllowed }
369
365
title = "Assign Views"
370
366
/>
371
- </ TableRightActionHeader >
367
+ </ Box >
372
368
</ TableHeader >
373
369
374
370
< ResponsiveDataTable
0 commit comments