Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GilMM27 committed Feb 16, 2025
1 parent ee9cca5 commit aed44ec
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 59 deletions.
2 changes: 2 additions & 0 deletions app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ interface Match {
interests: string[];
instagram: string;
whatsapp: string;
gender: string;
}

export interface MatchResponse {
Expand Down Expand Up @@ -247,6 +248,7 @@ export async function getMatches(userId: string): Promise<MatchResponse> {
interests: (preferences?.activities as string[]) || [],
instagram: profile?.instagram as string,
whatsapp: profile?.phone as string,
gender: profile?.gender as string,
};
}

Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Home() {
<main>
<HeartParticles />
<Welcome />
{/* <Header/> */}
<Header/>
</main>
)
}
125 changes: 68 additions & 57 deletions components/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -109,7 +120,7 @@ import { getMatches } from "@/app/actions";
match,
type,
}: {
match: Partial<(typeof mockMatches.pareja)[0]>;
match: matchesDataType;
type: MatchType;
}) => (
<Card className="mb-6">
Expand Down
2 changes: 1 addition & 1 deletion components/welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"] });
Expand Down

0 comments on commit aed44ec

Please sign in to comment.