Skip to content

Commit

Permalink
feat(Dashboard): Include application name in header
Browse files Browse the repository at this point in the history
  • Loading branch information
Darran Boyd committed Nov 8, 2023
1 parent e8fce6b commit 3bd844c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Overview from './components/Overview';
import STRIDEAllocation from './components/STRIDEAllocation';
import ThreatGrammar from './components/ThreatGrammar';
import ThreatPrioritization from './components/ThreatPrioritization';
import { useApplicationInfoContext } from '../../../contexts/ApplicationContext';

export interface ItemType {
title: string;
Expand Down Expand Up @@ -72,12 +73,14 @@ const WorkspaceInsights = () => {
</BoardItem>);
}, []);

const { applicationInfo } = useApplicationInfoContext();

return (<ContentLayout
header={
<Header
variant="h1"
>
Insights dashboard
{applicationInfo.name ? 'Insights dashboard for: ' + applicationInfo.name : 'Insights dashboard'}
</Header>
}
>
Expand Down

0 comments on commit 3bd844c

Please sign in to comment.