diff options
| author | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-03 00:59:24 +0000 |
|---|---|---|
| committer | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-03 00:59:24 +0000 |
| commit | 3385621a3d51cd259d74d4e469479967859cc4f5 (patch) | |
| tree | c252acdbef9c9f3a2aa82d2fa82b5736afa834e7 | |
| parent | e1616412b2f36ad9268a940c4472bf08931e3900 (diff) | |
| download | eleicoes-3385621a3d51cd259d74d4e469479967859cc4f5.tar.gz eleicoes-3385621a3d51cd259d74d4e469479967859cc4f5.zip | |
eleicoes finalizadas
| -rw-r--r-- | app/obrigado/page.tsx | 3 | ||||
| -rw-r--r-- | app/page.tsx | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app/obrigado/page.tsx b/app/obrigado/page.tsx index 173436b..334895e 100644 --- a/app/obrigado/page.tsx +++ b/app/obrigado/page.tsx @@ -36,12 +36,11 @@ export default function ObrigadoPage() { try { const supabase = getSupabaseClient(); - const optionRegistered = option === "NULO" ? "SIE" : option; const { error } = await supabase.from("votes").insert([ { rm, name, - option: optionRegistered, + option: option, }, ]); diff --git a/app/page.tsx b/app/page.tsx index 0fdd4e9..8d63be7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -76,7 +76,10 @@ export default function Home() { </CardDescription> </CardHeader> <CardContent className="pt-6"> - <form onSubmit={handleSubmit} className="space-y-4"> + <div className="space-y-2"> + <p>As eleições foram encerradas, obrigado pelo seu voto!</p> + </div> + {/* <form onSubmit={handleSubmit} className="space-y-4"> <div className="space-y-2"> <label htmlFor="rm" @@ -134,7 +137,7 @@ export default function Home() { > CONFIRMAR </Button> - </form> + </form> */} </CardContent> <CardFooter className="flex justify-center border-t border-[#004a93] bg-[#f8f8f8] py-3 text-sm text-[#004a93] rounded-b-lg"> Seu voto é secreto e seguro. |