This commit is contained in:
Ivan Rezchikov
2026-07-11 21:40:18 +03:00
parent 6667cc55b2
commit e4844f741c
7 changed files with 30 additions and 34 deletions
+5 -3
View File
@@ -44,6 +44,10 @@ export default function EditPageClient({ page, pageType, initialBlocks = [] }: P
});
}
const handleChange = (data: EditorData) => {
dataRef.current = data;
};
return (
<div className="flex flex-col p-4 md:p-16 gap-6 md:gap-12 mb-4 md:mb-0">
<div className="flex flex-row items-center justify-between">
@@ -62,9 +66,7 @@ export default function EditPageClient({ page, pageType, initialBlocks = [] }: P
page={page}
type={pageType}
initialBlocks={initialBlocks}
onChange={(data) => {
dataRef.current = data;
}}
onChange={handleChange}
/>
</div>
);
+1 -1
View File
@@ -27,7 +27,7 @@ export async function HasCitizenship({ userId }: { userId: string }) {
<TriangleAlertIcon />
<AlertTitle>Citizenship record unavailable</AlertTitle>
<AlertDescription>
We couldn't verify your active citizenship record. Contact the competent authority.
We couldn&apos;t verify your active citizenship record. Contact the competent authority.
</AlertDescription>
</Alert>
);
@@ -12,7 +12,6 @@ import { approveApplication, rejectApplication } from "@/lib/citizenship/actions
import { CitizenshipApplicationWithWarning } from "@/lib/citizenship/types";
import { formatDate } from "@/lib/utils";
import { TriangleAlertIcon } from "lucide-react";
import Image from "next/image";
import { useState } from "react";
import { toast } from "sonner";
@@ -79,7 +78,7 @@ export default function ApplicationCard({ application, onClose }: { application:
<Alert className="mb-2" variant="warning">
<TriangleAlertIcon />
<AlertTitle>Name mismatch</AlertTitle>
<AlertDescription className="w-fit max-w-full">The name on this application differs from the applicant's Kotosoft ID. Verify before approving.</AlertDescription>
<AlertDescription className="w-fit max-w-full">The name on this application differs from the applicant&apos;s Kotosoft ID. Verify before approving.</AlertDescription>
</Alert>
)}
{ application.previousCitizenship && (