Skip to content

Commit

Permalink
Fixes #35724 - Add page title to Host Statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
kmalyjur authored and MariaAga committed Nov 9, 2022
1 parent 23b00dd commit d1b18e0
Showing 1 changed file with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import SkeletonLoader from '../common/SkeletonLoader';
import { STATUS } from '../../constants';
import { API_OPTIONS } from './HostStatusesConstants';
import { selectHostStatusesNames } from './HostStatusesSelectors';
import Head from '../Head/index';

import './HostStatuses.scss';

Expand All @@ -27,24 +28,29 @@ const HostStatuses = () => {
const statuses = useSelector(state => selectHostStatusesNames(state));

return (
<PageSection padding className="host-statuses-page">
<Grid hasGutter>
<GridItem span={12}>
<Title
ouiaId="host-status-overview-title"
headingLevel="h5"
size="xl"
>
{__('Host Status Overview')}
</Title>
</GridItem>
<SkeletonLoader customSkeleton={<Skeleton />} status={status}>
{statuses.map((name, i) => (
<Status key={i} name={name} />
))}
</SkeletonLoader>
</Grid>
</PageSection>
<>
<Head>
<title>{__('Host Statuses')}</title>
</Head>
<PageSection padding className="host-statuses-page">
<Grid hasGutter>
<GridItem span={12}>
<Title
ouiaId="host-status-overview-title"
headingLevel="h5"
size="xl"
>
{__('Host Status Overview')}
</Title>
</GridItem>
<SkeletonLoader customSkeleton={<Skeleton />} status={status}>
{statuses.map((name, i) => (
<Status key={i} name={name} />
))}
</SkeletonLoader>
</Grid>
</PageSection>
</>
);
};

Expand Down

0 comments on commit d1b18e0

Please sign in to comment.