fix(catalog-react) : moving styles under makeStyles

Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
This commit is contained in:
its-mitesh-kumar
2024-11-06 12:36:41 +05:30
parent 9cc82c02bf
commit 08a3c86aa9
@@ -42,6 +42,10 @@ const useStyles = makeStyles(
verticalAlign: 'middle',
},
},
breakTextOverflow: {
overflow: 'hidden',
wordBreak: 'break-word',
},
}),
{ name: 'CatalogReactEntityDisplayName' },
);
@@ -77,16 +81,7 @@ export const EntityDisplayName = (
);
// The innermost "body" content
let content = (
<div
style={{
overflow: 'hidden',
wordBreak: 'break-word',
}}
>
{primaryTitle}
</div>
);
let content = <div className={classes.breakTextOverflow}>{primaryTitle}</div>;
// Optionally an icon, and wrapper around them both
content = (