diff --git a/apps/tup-ui/src/pages/Projects/Projects.tsx b/apps/tup-ui/src/pages/Projects/Projects.tsx index 4cf5174a1..4af9301d1 100644 --- a/apps/tup-ui/src/pages/Projects/Projects.tsx +++ b/apps/tup-ui/src/pages/Projects/Projects.tsx @@ -20,7 +20,7 @@ const Layout: React.FC = () => {
}> + } isNestedHeader> Projects & Allocations } diff --git a/libs/core-components/src/lib/SectionHeader/SectionHeader.jsx b/libs/core-components/src/lib/SectionHeader/SectionHeader.jsx index a0aed4bda..0c340d43b 100644 --- a/libs/core-components/src/lib/SectionHeader/SectionHeader.jsx +++ b/libs/core-components/src/lib/SectionHeader/SectionHeader.jsx @@ -42,9 +42,11 @@ function SectionHeader({ isForForm, isForTable, isForList, + isNestedHeader, }) { let styleName = ''; const styleNameList = [styles['root']]; + const HeaderTagName = isNestedHeader ? 'div' : 'header'; const HeadingTagName = isForForm || isForTable || isForList ? 'h2' : 'h1'; if (isForForm) styleNameList.push(styles['for-form']); @@ -55,14 +57,14 @@ function SectionHeader({ styleName = styleNameList.join(' '); return ( -
+ {children && ( {children} )} {actions} -
+ ); } SectionHeader.propTypes = { diff --git a/libs/tup-components/src/projects/header/ProjectHeader/ProjectHeader.tsx b/libs/tup-components/src/projects/header/ProjectHeader/ProjectHeader.tsx index 5496fa259..1e7aec2c8 100644 --- a/libs/tup-components/src/projects/header/ProjectHeader/ProjectHeader.tsx +++ b/libs/tup-components/src/projects/header/ProjectHeader/ProjectHeader.tsx @@ -86,7 +86,7 @@ export const ProjectHeader: React.FC<{ projectId: number }> = ({ return (
- + {isActive && Active Projects } {!isActive && ( Inactive Projects diff --git a/libs/tup-components/src/system-status/details/SystemStatusHeader.tsx b/libs/tup-components/src/system-status/details/SystemStatusHeader.tsx index 541553c4b..4d93d1c2d 100644 --- a/libs/tup-components/src/system-status/details/SystemStatusHeader.tsx +++ b/libs/tup-components/src/system-status/details/SystemStatusHeader.tsx @@ -17,7 +17,7 @@ export const SystemStatusHeader: React.FC = ({ if (error) return ( - + System Status / Unable to retrieve system name @@ -25,6 +25,8 @@ export const SystemStatusHeader: React.FC = ({ ); return ( - System Status / {dataBySystem?.display_name} + + System Status / {dataBySystem?.display_name} + ); };