diff --git a/apps/console/src/pages/PageHeader.tsx b/apps/console/src/pages/PageHeader.tsx
index 3d197fae0..c077f7fde 100644
--- a/apps/console/src/pages/PageHeader.tsx
+++ b/apps/console/src/pages/PageHeader.tsx
@@ -3,14 +3,16 @@ import { ReactNode } from "react";
export function PageHeader({
className,
+ children,
title,
actions,
description,
}: {
className?: string;
+ children?: ReactNode;
title: string;
actions?: ReactNode;
- description: string;
+ description?: string;
}) {
return (
@@ -22,7 +24,8 @@ export function PageHeader({
) : (
)}
-
{description}
+ {description &&
{description}}
+ {children}
);
}
diff --git a/apps/console/src/pages/PeopleOverviewPage.tsx b/apps/console/src/pages/PeopleOverviewPage.tsx
index 6b64f504e..d6e80a201 100644
--- a/apps/console/src/pages/PeopleOverviewPage.tsx
+++ b/apps/console/src/pages/PeopleOverviewPage.tsx
@@ -18,6 +18,7 @@ import type { PeopleOverviewPageQuery as PeopleOverviewPageQueryType } from "./_
import { useParams } from "react-router";
import { Helmet } from "react-helmet-async";
import { cn } from "@/lib/utils";
+import { PageHeader } from "./PageHeader";
const peopleOverviewPageQuery = graphql`
query PeopleOverviewPageQuery($peopleId: ID!) {
@@ -161,140 +162,156 @@ function PeopleOverviewPageContent({
return (
<>
-
-
-
handleFieldChange("fullName", value)}
- />
+
+ Person - Probo
+
+
+
+
+
+
handleFieldChange("fullName", value)}
+ />
-
- handleFieldChange("primaryEmailAddress", value)
- }
- />
+
+ handleFieldChange("primaryEmailAddress", value)
+ }
+ />
-
-
-
-
-
- {formData.additionalEmailAddresses.map((email, index) => (
-
- {
- const newEmails = [...formData.additionalEmailAddresses];
- newEmails[index] = e.target.value;
- handleFieldChange("additionalEmailAddresses", newEmails);
- }}
- />
-
-
- ))}
-
-
-
-
-
-
-
-
Additional Information
-
- Additional details about the person
-
+
+
+
+
+ {formData.additionalEmailAddresses.map((email, index) => (
+
+ {
+ const newEmails = [
+ ...formData.additionalEmailAddresses,
+ ];
+ newEmails[index] = e.target.value;
+ handleFieldChange(
+ "additionalEmailAddresses",
+ newEmails
+ );
+ }}
+ />
+
+
+ ))}
+
+
+
+
-
-
-
-
-
-
-
-
+
+ Additional Information
+
+
+ Additional details about the person
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
- {hasChanges && (
-
-
-
-
- )}
+ {hasChanges && (
+
+
+
+
+ )}
+
>
);
}
diff --git a/apps/console/src/pages/PolicyOverviewPage.tsx b/apps/console/src/pages/PolicyOverviewPage.tsx
index ff4910a72..6fd35838d 100644
--- a/apps/console/src/pages/PolicyOverviewPage.tsx
+++ b/apps/console/src/pages/PolicyOverviewPage.tsx
@@ -18,6 +18,7 @@ import type { PolicyOverviewPageDeleteMutation } from "./__generated__/PolicyOve
import { Helmet } from "react-helmet-async";
import "../styles/policy-content.css";
import { useToast } from "@/hooks/use-toast";
+import { PageHeader } from "./PageHeader";
const PolicyOverviewPageQuery = graphql`
query PolicyOverviewPageQuery($policyId: ID!) {
@@ -152,72 +153,65 @@ function PolicyOverviewPageContent({
{policy.name} - Probo Console
-
-
-
-
-
-
{policy.name}
-
-
+
+
- {policy.owner && (
-
-
-
- {policy.owner.fullName}
-
-
- )}
- {policy.reviewDate && (
-
-
- Review: {formatDate(policy.reviewDate)}
-
- )}
-
-
-
-
-
+
-
+
+ Download
+
+
+ }
+ >
+
+
+ {policy.status === "ACTIVE" ? "Active" : "Draft"}
+
+ {policy.owner && (
+
+
+
+ {policy.owner.fullName}
+
+
+ )}
+ {policy.reviewDate && (
+
+
+ Review: {formatDate(policy.reviewDate)}
+
+ )}
-
+
diff --git a/apps/console/src/pages/UpdateControlPage.tsx b/apps/console/src/pages/UpdateControlPage.tsx
index 4e5bdac3d..e0775eba2 100644
--- a/apps/console/src/pages/UpdateControlPage.tsx
+++ b/apps/console/src/pages/UpdateControlPage.tsx
@@ -28,6 +28,7 @@ import type {
ControlState,
ControlImportance,
} from "./__generated__/UpdateControlPageUpdateControlMutation.graphql";
+import { PageHeader } from "./PageHeader";
const updateControlMutation = graphql`
mutation UpdateControlPageUpdateControlMutation($input: UpdateControlInput!) {
@@ -253,11 +254,12 @@ function UpdateControlPageContent({
Update Control - Probo
-
-
-
Update Control
-
Update the control details
-
+