polish meeting and consent views

This commit is contained in:
Michael committed 2026-07-18 04:17:28 +02:00
1 parent afc805c96a
commit 5e7233f98d
6 files changed
+131 -15

No files matched your search

+27
View File
@@ -6,10 +6,12 @@ export function ImageConsentForm({
saveAction,
defaultName,
compact = false,
currentDecision = null,
}: {
saveAction: (formData: FormData) => Promise<void>;
defaultName: string;
compact?: boolean;
currentDecision?: "accepted" | "refused" | null;
}) {
const canvasRef = useRef<HTMLCanvasElement>(null);
const [drawing, setDrawing] = useState(false);
@@ -65,6 +67,31 @@ export function ImageConsentForm({
}
}
if (currentDecision === "accepted") {
return (
<form action={saveAction} style={{ marginTop: 12 }}>
<input type="hidden" name="signatoryName" value={defaultName} />
<input type="hidden" name="signaturePng" value="" />
<button
type="submit"
name="decision"
value="refused"
style={{
border: "1px solid #e0c3bb",
background: "#fff",
color: "#d8472b",
fontWeight: 800,
borderRadius: 8,
padding: "9px 14px",
cursor: "pointer",
}}
>
Retirer mon autorisation
</button>
</form>
);
}
return (
<form
action={saveAction}