aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/obrigado/page.tsx3
-rw-r--r--app/page.tsx7
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.