fix
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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'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's Kotosoft ID. Verify before approving.</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
{ application.previousCitizenship && (
|
||||
|
||||
Reference in New Issue
Block a user