Skip to content
Snippets Groups Projects

CE-1847: use common GlobalAppBar

Merged CE-1847: use common GlobalAppBar
1 unresolved thread
Merged Christina Jenks requested to merge CE-1847-replace-global-app-bar into develop
1 unresolved thread
3 files
+ 14
14
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 7ac96ab4
    CE-1847: fix intermittent useEffect error, overridden title · 7ac96ab4
    cjenkscybercom authored
@@ -96,10 +96,11 @@ export function IOCDetailsView({ ioc, getIOC, loading }) {
@@ -96,10 +96,11 @@ export function IOCDetailsView({ ioc, getIOC, loading }) {
);
);
const { setTitle } = useContext(GlobalAppBarContext);
const { setTitle } = useContext(GlobalAppBarContext);
useEffect(
useEffect(() => {
() => ioc && setTitle(applicationTitle(`IOC Details: ${ioc.namingName}`)),
if (ioc) {
[ioc, setTitle]
setTitle(applicationTitle(`IOC Details: ${ioc.namingName}`));
);
}
 
}, [ioc, setTitle]);
const statusTab = (
const statusTab = (
<Tab
<Tab
Loading