Skip to content

Commit

Permalink
Fixes #36734 - Hide double title on Register Host page
Browse files Browse the repository at this point in the history
  • Loading branch information
kmalyjur committed Sep 11, 2023
1 parent b9986c9 commit d615be1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const RegistrationCommandsPage = () => {
}, [dispatch, hostGroupId, operatingSystemId]);

return (
<PageLayout header={__('Register Host')} searchable={false}>
<PageLayout header={__('Register Host')} searchable={false} hideTitle={true}>
<Form
onSubmit={e => handleSubmit(e)}
className="registration_commands_form"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const PageLayout = ({
beforeToolbarComponent,
isLoading,
pageSectionType,
hideTitle,
children,
}) => (
<>
Expand All @@ -32,7 +33,7 @@ const PageLayout = ({
</Head>
<PageSection variant={PageSectionVariants.light} type="breadcrumb">
<div id="breadcrumb">
{!breadcrumbOptions && (
{!breadcrumbOptions && !hideTitle && (
<TextContent>
<Text ouiaId="breadcrumb_title" component="h1">
{header}
Expand Down Expand Up @@ -126,6 +127,7 @@ PageLayout.propTypes = {
beforeToolbarComponent: PropTypes.node,
isLoading: PropTypes.bool,
pageSectionType: PropTypes.string,
hideTitle: PropTypes.bool,
};

PageLayout.defaultProps = {
Expand Down

0 comments on commit d615be1

Please sign in to comment.