diff --git a/app/actions.ts b/app/actions.ts index e364df7..aae1125 100644 --- a/app/actions.ts +++ b/app/actions.ts @@ -204,6 +204,7 @@ interface Match { interests: string[]; instagram: string; whatsapp: string; + gender: string; } export interface MatchResponse { @@ -247,6 +248,7 @@ export async function getMatches(userId: string): Promise { interests: (preferences?.activities as string[]) || [], instagram: profile?.instagram as string, whatsapp: profile?.phone as string, + gender: profile?.gender as string, }; } diff --git a/app/page.tsx b/app/page.tsx index bf26fed..288fed1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -8,7 +8,7 @@ export default function Home() {
- {/*
*/} +
) } \ No newline at end of file diff --git a/components/Dashboard.tsx b/components/Dashboard.tsx index 3340dcd..16c6c91 100644 --- a/components/Dashboard.tsx +++ b/components/Dashboard.tsx @@ -30,63 +30,74 @@ import { useEffect, useState } from "react"; import { useSession } from "next-auth/react"; import { getMatches } from "@/app/actions"; + type matchesDataType = { + name: string; + age: number; + compatibility: number; + interests: string[]; + instagram: string; + whatsapp: string; + gender: string; + } + // Enhanced mock data for demonstration - const mockMatches = { - pareja: [ - { - name: "María García", - age: 28, - compatibility: 95, - interests: ["Música", "Lectura", "Viajes"], - instagram: "@maria_garcia", - whatsapp: "+52 1 55 1234 5678", - }, - { - name: "María García", - age: 28, - compatibility: 95, - interests: ["Música", "Lectura", "Viajes"], - instagram: "@maria_garcia", - whatsapp: "+52 1 55 1234 5678", - }, - { - name: "María García", - age: 28, - compatibility: 95, - interests: ["Música", "Lectura", "Viajes"], - instagram: "@maria_garcia", - whatsapp: "+52 1 55 1234 5678", - }, - ], - amigos: [ - { - name: "María García", - age: 28, - compatibility: 95, - interests: ["Música", "Lectura", "Viajes"], - instagram: "@maria_garcia", - whatsapp: "+52 1 55 1234 5678", - }, - { - name: "María García", - age: 28, - compatibility: 95, - interests: ["Música", "Lectura", "Viajes"], - instagram: "@maria_garcia", - whatsapp: "+52 1 55 1234 5678", - }, - { - name: "María García", - age: 28, - compatibility: 95, - interests: ["Música", "Lectura", "Viajes"], - instagram: "@maria_garcia", - whatsapp: "+52 1 55 1234 5678", - }, - ], - casual: [ - ], - }; + // const mockMatches = { + // pareja: [ + // { + // name: "María García", + // age: 28, + // compatibility: 95, + // interests: ["Música", "Lectura", "Viajes"], + // instagram: "@maria_garcia", + // whatsapp: "+52 1 55 1234 5678", + // }, + // { + // name: "María García", + // age: 28, + // compatibility: 95, + // interests: ["Música", "Lectura", "Viajes"], + // instagram: "@maria_garcia", + // whatsapp: "+52 1 55 1234 5678", + // gender: 'Femenino' + // }, + // { + // name: "María García", + // age: 28, + // compatibility: 95, + // interests: ["Música", "Lectura", "Viajes"], + // instagram: "@maria_garcia", + // whatsapp: "+52 1 55 1234 5678", + // }, + // ], + // amigos: [ + // { + // name: "María García", + // age: 28, + // compatibility: 95, + // interests: ["Música", "Lectura", "Viajes"], + // instagram: "@maria_garcia", + // whatsapp: "+52 1 55 1234 5678", + // }, + // { + // name: "María García", + // age: 28, + // compatibility: 95, + // interests: ["Música", "Lectura", "Viajes"], + // instagram: "@maria_garcia", + // whatsapp: "+52 1 55 1234 5678", + // }, + // { + // name: "María García", + // age: 28, + // compatibility: 95, + // interests: ["Música", "Lectura", "Viajes"], + // instagram: "@maria_garcia", + // whatsapp: "+52 1 55 1234 5678", + // }, + // ], + // casual: [ + // ], + // }; type MatchType = "pareja" | "amigos" | "casual"; @@ -109,7 +120,7 @@ import { getMatches } from "@/app/actions"; match, type, }: { - match: Partial<(typeof mockMatches.pareja)[0]>; + match: matchesDataType; type: MatchType; }) => ( diff --git a/components/welcome.tsx b/components/welcome.tsx index 4f67127..b4d72f8 100644 --- a/components/welcome.tsx +++ b/components/welcome.tsx @@ -6,7 +6,7 @@ import Image from 'next/image' import styles from './/font.module.css' // import { useSession } from "next-auth/react" // import { useRouter } from "next/navigation" -import { CountdownTimer } from "./CountdownTimer" +// import { CountdownTimer } from "./CountdownTimer" import LoginCard from "./LoginCard" const tangerine = Tangerine({ subsets: ["latin"], weight: ["400", "700"] });