From 890de6532376dd531ce4d64e2ea8c27868d7b2b7 Mon Sep 17 00:00:00 2001 From: Jesus Rojas Date: Wed, 24 Apr 2024 15:13:08 -0500 Subject: [PATCH 1/4] refactor: update toast component to use structured enums over magic strings :recycle: --- src/components/Pronosticos/Vote.astro | 9 +- src/env.d.ts | 6 - src/function/toast.ts | 229 +++++++++++++------------- src/global.d.ts | 8 +- 4 files changed, 127 insertions(+), 125 deletions(-) diff --git a/src/components/Pronosticos/Vote.astro b/src/components/Pronosticos/Vote.astro index 9bd163b53..afd18bf88 100644 --- a/src/components/Pronosticos/Vote.astro +++ b/src/components/Pronosticos/Vote.astro @@ -205,6 +205,7 @@ votes.forEach((vote) => {