diff --git a/.lintstagedrc b/.lintstagedrc index 80b91aa34..13b3a1281 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,6 +1,3 @@ { - "src/**/*.{astro,ts,js,tsx,jsx}": [ - "eslint --ext", - "prettier --check" - ] + "src/**/*.{astro,ts,js,tsx,jsx}": ["eslint --ext", "prettier --check"] } diff --git a/src/components/Pronosticos/Vote.astro b/src/components/Pronosticos/Vote.astro index 9bd163b53..63b167ca3 100644 --- a/src/components/Pronosticos/Vote.astro +++ b/src/components/Pronosticos/Vote.astro @@ -3,6 +3,7 @@ import type { User } from "@auth/core/types" import { Image } from "astro:assets" import { Votes, db, eq } from "astro:db" +import Action from "@/components/Action.astro" import Typography from "@/components/Typography.astro" import { BOXERS } from "@/consts/boxers" import { COMBATS, REY_DE_LA_PISTA_ID } from "@/consts/combats" @@ -40,7 +41,7 @@ interface Props { const { user } = Astro.props as Props const userId = user.id -const votes = await db +const votes: { combatId: string; voteId: string }[] = await db .select({ combatId: Votes.combatId, voteId: Votes.voteId }) .from(Votes) .where(eq(Votes.userId, userId)) @@ -52,21 +53,31 @@ votes.forEach((vote) => { ---
- ¡haz tu pronóstico! - Vota tus ganadores para cada combate haciendo clic encima de cada uno - -
- {`Avatar -
-

{user.name}

- +
+
+ ¡haz tu pronóstico! + Vota tus ganadores para cada combate haciendo clic encima de cada uno
-
+
+ {`Avatar +
+

{user.name}

+ + Cerrar sesión + +
+
+