Skip to content

Commit

Permalink
Merge pull request #880 from debjyoti-pandit/Bug-2210040
Browse files Browse the repository at this point in the history
Bug 2210040: added the section heading for deployment details in topology view
  • Loading branch information
openshift-merge-robot authored Jun 23, 2023
2 parents a3160af + 13c9e81 commit 4241c81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en/plugin__odf-console.json
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@
"Subscription": "Subscription",
"Subscriptions": "Subscriptions",
"Project": "Project",
"Deployment details": "Deployment details",
"Metrics": "Metrics",
"CPU usage": "CPU usage",
"Receive bandwidth": "Receive bandwidth",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import * as React from 'react';
import { ResourceSummary } from '@odf/shared/details-page/DetailsPage';
import { SectionHeading } from '@odf/shared/heading/page-heading';
import { DeploymentModel } from '@odf/shared/models';
import { DeploymentKind } from '@odf/shared/types';
import { useCustomTranslation } from '@odf/shared/useCustomTranslationHook';

type DeploymentDetailsProps = {
resource: DeploymentKind;
Expand All @@ -10,8 +12,10 @@ type DeploymentDetailsProps = {
export const DeploymentDetails: React.FC<DeploymentDetailsProps> = ({
resource,
}) => {
const { t } = useCustomTranslation();
return (
<div className="odf-m-pane__body">
<SectionHeading text={t('Deployment details')} />
<ResourceSummary resource={resource} resourceModel={DeploymentModel} />
</div>
);
Expand Down

0 comments on commit 4241c81

Please sign in to comment.