mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-15 19:26:21 +02:00
polish meeting and consent views
This commit is contained in:
1 parent
afc805c96a
commit
5e7233f98d
6 files changed
+131
-15
No files matched your search
@@ -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}
|
||||
|
||||
@@ -5,7 +5,6 @@ const NAV = [
|
||||
{ key: "annuaire", label: "Annuaire", href: "/annuaire" },
|
||||
{ key: "promotions", label: "Promotions", href: "/#promotions" },
|
||||
{ key: "association", label: "L'association", href: "/association" },
|
||||
{ key: "past", label: "Rencontres passées", href: "/rencontres-passees" },
|
||||
];
|
||||
|
||||
export function SiteHeader({ active, logo = false }: { active?: string; logo?: boolean }) {
|
||||
|
||||
Reference in new issue
Block a user