diff --git a/screen2.0/src/app/search/page.tsx b/screen2.0/src/app/search/page.tsx
index 4eb6f733..342b0543 100644
--- a/screen2.0/src/app/search/page.tsx
+++ b/screen2.0/src/app/search/page.tsx
@@ -770,6 +770,32 @@ export default function Search({ searchParams }: { searchParams: { [key: string]
)
}
+ // Create a styled close button that looks like an IconButton
+ // Needed to prevent IconButton from being child of button in tab (hydration error)
+ const CloseIconButton = styled('div')(({ theme }) => ({
+ display: 'inline-flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ padding: 4,
+ borderRadius: '50%',
+ marginLeft: theme.spacing(1),
+ cursor: 'pointer',
+ '&:hover': {
+ backgroundColor: theme.palette.action.hover,
+ },
+ '& svg': {
+ fontSize: '1.25rem',
+ }
+ }));
+
+ const CloseTabButton = (cCRE) => {
+ return (
+ { event.stopPropagation(); handleClosecCRE(cCRE.ID) }}>
+
+
+ )
+ }
+
return (
<>
@@ -817,11 +843,10 @@ export default function Search({ searchParams }: { searchParams: { [key: string]
event.preventDefault} key={i} value={numberOfDefaultTabs + i}
label={cCRE.ID}
- icon={
- { event.stopPropagation(); handleClosecCRE(cCRE.ID) }}>
-
-
- }
+ sx={{
+ '& .MuiTab-icon': {ml: 0}
+ }}
+ icon={}
iconPosition="end"
/>
)