Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-04 17:32:58 +01:00
parent f99eb67958
commit bb6c4b50de
2 changed files with 38 additions and 38 deletions

View File

@@ -96,23 +96,7 @@ function PolicyOverviewPageContent({
</div>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
<div className="md:col-span-2">
<Card>
<CardHeader>
<CardTitle>Policy Content</CardTitle>
</CardHeader>
<CardContent>
<div className="prose prose-sm md:prose-base lg:prose-lg max-w-none">
<div
className="policy-content"
dangerouslySetInnerHTML={{ __html: policy.content || "" }}
/>
</div>
</CardContent>
</Card>
</div>
<div className="grid grid-cols-1 gap-6">
<div>
<Card>
<CardHeader>
@@ -142,6 +126,22 @@ function PolicyOverviewPageContent({
</CardContent>
</Card>
</div>
<div>
<Card>
<CardHeader>
<CardTitle>Policy Content</CardTitle>
</CardHeader>
<CardContent>
<div className="prose prose-sm md:prose-base lg:prose-lg max-w-none">
<div
className="policy-content"
dangerouslySetInnerHTML={{ __html: policy.content || "" }}
/>
</div>
</CardContent>
</Card>
</div>
</div>
</div>
);
@@ -162,24 +162,7 @@ function PolicyOverviewPageFallback() {
</div>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
<div className="md:col-span-2">
<Card>
<CardHeader>
<div className="h-6 w-32 bg-muted animate-pulse rounded" />
</CardHeader>
<CardContent>
<div className="space-y-4">
<div className="h-4 w-full bg-muted animate-pulse rounded" />
<div className="h-4 w-full bg-muted animate-pulse rounded" />
<div className="h-4 w-3/4 bg-muted animate-pulse rounded" />
<div className="h-4 w-full bg-muted animate-pulse rounded" />
<div className="h-4 w-5/6 bg-muted animate-pulse rounded" />
</div>
</CardContent>
</Card>
</div>
<div className="grid grid-cols-1 gap-6">
<div>
<Card>
<CardHeader>
@@ -203,6 +186,23 @@ function PolicyOverviewPageFallback() {
</CardContent>
</Card>
</div>
<div>
<Card>
<CardHeader>
<div className="h-6 w-32 bg-muted animate-pulse rounded" />
</CardHeader>
<CardContent>
<div className="space-y-4">
<div className="h-4 w-full bg-muted animate-pulse rounded" />
<div className="h-4 w-full bg-muted animate-pulse rounded" />
<div className="h-4 w-3/4 bg-muted animate-pulse rounded" />
<div className="h-4 w-full bg-muted animate-pulse rounded" />
<div className="h-4 w-5/6 bg-muted animate-pulse rounded" />
</div>
</CardContent>
</Card>
</div>
</div>
</div>
);

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<be4844f007d260c332082a01fe125a57>>
* @generated SignedSource<<0d5fd744f67f5e3c2d357a41e392acfb>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -16,11 +16,11 @@ export type PolicyOverviewPageQuery$variables = {
export type PolicyOverviewPageQuery$data = {
readonly node: {
readonly content?: string;
readonly createdAt?: string;
readonly createdAt?: any;
readonly id: string;
readonly name?: string;
readonly status?: PolicyStatus;
readonly updatedAt?: string;
readonly updatedAt?: any;
};
};
export type PolicyOverviewPageQuery = {